Closed pakeke-constructor closed 1 year ago
update:
the issue occurs when W
H
values are specified.
Inside the Image.Begin
code, the rectangle width/height is scaled down twice, whereas the image is scaled down once.
Can be fixed by dividing the W,H by the scale first, like so:
if options.UseOutline then
DrawCommands.Rectangle(
'line',
x,
y,
useSubImage and subW or w / scaleX,
useSubImage and subH or h / scaleY,
options.OutlineColor or BLACK,
nil,
nil,
options.OutlineW or 1
)
end
I'll make a pr for this rn.
Thanks!
ty.
repro:
Doing some digging into this rn.