Improved handling of zero-sized locked nodes on RootView
This commit is contained in:
1 parent
ab8510291e
commit
885ed5f860
3 files changed
+8
-7
No files matched your search
+1
-1
@@ -126,7 +126,7 @@ end
|
||||
function View:draw_background(color)
|
||||
local x, y = self.position.x, self.position.y
|
||||
local w, h = self.size.x, self.size.y
|
||||
renderer.draw_rect(x, y, math.ceil(w), math.ceil(h), color)
|
||||
renderer.draw_rect(x, y, w + x % 1, h + y % 1, color)
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user