[02 Sep 2009] 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

[02 Sep 2009] Strange Bug

Post by PEB »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 02 Sep 2009 02:31:55 -0000

Hi Andreas,

If I use the following code, the second ChangeDisplaySize() is ignored:

Code: Select all

LoadBGPic(1, "Test1")
DisplayBGPic(1)
ChangeDisplaySize(GetAttribute(#DISPLAY,0,#ATTRHOSTWIDTH)-50, 50, {X=10, Y=0})
WaitLeftMouse()
LoadBGPic(2, "Test2")
DisplayBGPic(2)
WaitLeftMouse()
DisplayBGPic(1)
ChangeDisplaySize(GetAttribute(#DISPLAY,0,#ATTRHOSTWIDTH)-50, 50, {X=10, Y=0})
But if I comment out the first ChangeDisplaySize(), then the second one is recognized.

Any ideas?
User avatar
airsoftsoftwair
Posts: 5834
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[03 Sep 2009] Re: Strange Bug

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Thu, 03 Sep 2009 22:03:45 +0200
Hi Andreas,

If I use the following code, the second ChangeDisplaySize() is ignored:

Code: Select all

LoadBGPic(1, "Test1")
DisplayBGPic(1)
ChangeDisplaySize(GetAttribute(#DISPLAY,0,#ATTRHOSTWIDTH)-50, 50, {X=10,Y=0})
WaitLeftMouse()
LoadBGPic(2, "Test2")
DisplayBGPic(2)
WaitLeftMouse()
DisplayBGPic(1)
ChangeDisplaySize(GetAttribute(#DISPLAY,0,#ATTRHOSTWIDTH)-50, 50, {X=10,Y=0})
But if I comment out the first ChangeDisplaySize(), then the second one is recognized.

Any ideas?
Works fine here with the latest beta but that doesn't surprise me as the display handler has been almost completely rewritten :)
Locked