lib/cyberarm_engine/ui/elements/button.rb in cyberarm_engine-0.20.0 vs lib/cyberarm_engine/ui/elements/button.rb in cyberarm_engine-0.21.0
- old
+ new
@@ -62,11 +62,11 @@
else
@scale_x = 1
@scale_y = 1
end
- @width = _width || @image.width.round * @scale_x
- @height = _height || @image.height.round * @scale_y
+ @width = _width || @image.width.floor * @scale_x
+ @height = _height || @image.height.floor * @scale_y
update_background
else
super
end