mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
don't render text when no space
This commit is contained in:
@@ -235,7 +235,7 @@ function Renderer:renderIconAndText (widget)
|
||||
end
|
||||
|
||||
-- draw the text
|
||||
if text then
|
||||
if text and x2 > x1 then
|
||||
textX, textY = math.floor(textX), math.floor(textY)
|
||||
love.graphics.setFont(font.font)
|
||||
love.graphics.setColor(font.color)
|
||||
|
||||
Reference in New Issue
Block a user