lib/cyberarm_engine/ui/elements/image.rb in cyberarm_engine-0.22.0 vs lib/cyberarm_engine/ui/elements/image.rb in cyberarm_engine-0.23.0
- old
+ new
@@ -43,11 +43,11 @@
else
@scale_x = 1
@scale_y = 1
end
- @width = _width || @image.width.floor * @scale_x
- @height = _height || @image.height.floor * @scale_y
+ @width = _width || (@image.width * @scale_x).floor
+ @height = _height || (@image.height * @scale_y).floor
update_background
end
def value