Page 1 of 1

[19 Dec 2009] @DISPLAY and variables...

Posted: Sat Jun 13, 2020 5:32 pm
by Tuxedo
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 19 Dec 2009 18:09:28 -0000

Hi ALL! There's my fault or wasnt possible to pass variables to @DISPLAY precommand?

If I need to choose for a prefs file the dispaly size and then pass it to @DISPLAY command I cant...maybe I do something wrong..

I cant use ChangeDisplaySize() because If I will open the display in full screen I got a display size of the @DISPLAY passed parameters and they cant grow up...

Maybe I miss somethig...

Excusme if I cant explain it correctly...

Simone

[20 Dec 2009] Re: @DISPLAY and variables...

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, 20 Dec 2009 22:33:03 +0100

Hi Simone
Hi ALL! There's my fault or wasnt possible to pass variables to @DISPLAY precommand?

If I need to choose for a prefs file the dispaly size and then pass it to @DISPLAY command I cant...maybe I do something wrong..

I cant use ChangeDisplaySize() because If I will open the display in full screen I got a display size of the @DISPLAY passed parameters and they cant grow up...

Maybe I miss somethig...

Excusme if I cant explain it correctly...
You can't use variables for preprocessor commands like @DISPLAY because they are handled before anything else so all variables would be zero anyway. Currently, it's not possible to dynamically set a screen width/height. But it will be possible with Hollywood 4.5, because it has the new ChangeDisplayMode() command which can switch the display mode, e.g.

Code: Select all

; go to 800x600!
ChangeDisplayMode(#DMODE_FULLSCREEN, 800, 600)

[20 Dec 2009] Re: @DISPLAY and variables...

Posted: Sat Jun 13, 2020 5:32 pm
by Tuxedo
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 20 Dec 2009 22:00:41 -0000

GREAT! That's exactly what I need! Any ETA for the Hollywood 4,5 release???