Make boxes scale in a more stable way.

This commit is contained in:
Brad Nelson
2024-05-16 21:18:49 -07:00
parent 4284a22b28
commit c4f0895e54

View File

@ -65,10 +65,10 @@ gstack value gp
graphics definitions also internals graphics definitions also internals
: box { left top w h } : box { left top w h }
left sx * tx + 16 arshift left sx * tx + 16 arshift { l } l
top sy * ty + 16 arshift top sy * ty + 16 arshift { t } t
w sx * 16 arshift left w + sx * tx + 16 arshift l -
h sy * 16 arshift top h + sy * ty + 16 arshift t -
raw-box raw-box
; ;