Page 1 of 1

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

[03 Sep 2009] 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 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 :)