mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-18 18:06:44 +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:
@@ -43,7 +43,7 @@ Backend.setClipboardText = love.system.setClipboardText
|
||||
|
||||
Backend.getMousePosition = love.mouse.getPosition
|
||||
|
||||
Backend.getMousePosition = love.mouse.getPosition
|
||||
Backend.setMousePosition = love.mouse.setPosition
|
||||
|
||||
Backend.getSystemCursor = love.mouse.getSystemCursor
|
||||
|
||||
@@ -79,6 +79,8 @@ Backend.setScissor = love.graphics.setScissor
|
||||
|
||||
Backend.getScissor = love.graphics.getScissor
|
||||
|
||||
Backend.intersectScissor = love.graphics.intersectScissor
|
||||
|
||||
function Backend.hide (layout)
|
||||
for _, item in ipairs(layout.hooks) do
|
||||
Hooker.unhook(item)
|
||||
|
||||
Reference in New Issue
Block a user