Line, SetLayerStyle, and an too-large X2 value

Report any Hollywood bugs here
Post Reply
Flinx
Posts: 360
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

Line, SetLayerStyle, and an too-large X2 value

Post by Flinx »

Due to a bug, I came across a combination of commands that causes SetLayerStyle to freeze (tested on Windows and Linux). While this is easy to fix, it’s not so easy to find in a larger program. Perhaps there’s a way to prevent this.

Code: Select all

@DISPLAY {Layers=True}
SetFormStyle(#ANTIALIAS)
Line(5, 67, 90, 67, #WHITE, {Name="L"})
SetLayerStyle("L", {X2=32772})
Ralf
User avatar
airsoftsoftwair
Posts: 5933
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Line, SetLayerStyle, and an too-large X2 value

Post by airsoftsoftwair »

Probably an algorithmic overflow because your X2 value is slightly above the signed 16-bit integer quantity. I'll fix this, thanks for reporting!
Post Reply