Scaling small palette brushes crashes on OS4

Report any Hollywood bugs here
Post Reply
User avatar
lazi
Posts: 625
Joined: Thu Feb 24, 2011 11:08 pm

Scaling small palette brushes crashes on OS4

Post by lazi »

Code: Select all

CreateBrush(1,1,100,{palette=#palette_aga})
ScaleBrush(1,#KEEPASPRAT, 33) 
It works from two pixel wide brushes.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Scaling small palette brushes crashes on OS4

Post 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
Post Reply