mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
Text widget: intersect scissor.
Fixes a visual bug where text would display outside widget boundary. Mved intersectScissor to Backend.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user