Page 1 of 1

[19 Sep 2011] Strange Bug

Posted: Sat Jun 13, 2020 5:32 pm
by PEB
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 19 Sep 2011 22:56:49 -0000

Please test the following code:

Code: Select all

EnableLayers()
Line(0, 0, 0, 5, #RED, {Name="TestLine"})
SetLayerStyle("TestLine", {X=50, Y=50})
WaitLeftMouse()
SetLayerStyle("TestLine", {Height=25})
Repeat
	WaitEvent
Forever
For some reason, changing the Height of the line also returns it to the location where it was originally drawn. (This is using Hollywood 4.8)

Any ideas?

--PfvxU9qyWcuuoDyfcI6DTqTVgTlEOM1TnRu-vQu

[25 Sep 2011] Re: Strange Bug

Posted: Sat Jun 13, 2020 5:32 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 25 Sep 2011 22:15:41 +0200
For some reason, changing the Height of the line also returns it to the location where it was originally drawn. (This is using Hollywood 4.8)

Any ideas?
This is undocumented but you should not use the X/Y/Width/Height tags for layers of type #LINE. The behaviour of using these tags with #LINE layers is currently undefined. To change the look of a line please use the tags X1/Y1/X2/Y2.