[19 Sep 2011] Strange Bug

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

[19 Sep 2011] Strange Bug

Post 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
User avatar
airsoftsoftwair
Posts: 5833
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[25 Sep 2011] Re: Strange Bug

Post 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.
Locked