Text widget: intersect scissor.

Fixes a visual bug where text would display outside widget boundary.
Mved intersectScissor to Backend.
This commit is contained in:
airstruck
2016-02-08 11:52:10 -05:00
parent a4a34ce787
commit 971afaf1e7
4 changed files with 27 additions and 23 deletions

View File

@@ -410,7 +410,7 @@ This color is used to indicate the selected range of text.
local textTop = math.floor(y + (h - font:getLineHeight()) / 2)
Backend.push()
Backend.setScissor(x, y, w, h)
Backend.intersectScissor(x, y, w, h)
Backend.setFont(font)
if self.focused then