Fixed Image element causing clipping issues to sibling elements due to not properly flooring @width/@height

This commit is contained in:
2022-11-16 20:31:00 -06:00
parent c597a67ca6
commit c46664778a

View File

@@ -45,8 +45,8 @@ module CyberarmEngine
@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