Page 1 of 1

Scaling small palette brushes crashes on OS4

Posted: Tue Jan 10, 2023 12:21 am
by lazi

Code: Select all

CreateBrush(1,1,100,{palette=#palette_aga})
ScaleBrush(1,#KEEPASPRAT, 33) 
It works from two pixel wide brushes.

Re: Scaling small palette brushes crashes on OS4

Posted: Sat Jan 14, 2023 10:11 pm
by airsoftsoftwair
Good catch! Fixed now.

Code: Select all

- Fix: Memory access fault when passing #KEEPASPRAT to one of Hollywood's scaling functions and applying
  the aspect-ratio resulted in a zero width/height; in this case, the size is now padded to 1