Page 1 of 1

[19 Feb 2009] Fullscreen mode

Posted: Sat Jun 13, 2020 5:32 pm
by Allanon
Note: This is an archived post that was originally sent to the Hollywood mailing list on Thu, 19 Feb 2009 17:41:21 -0000

Hello, here is a command to enter/exit fullscreen mode at runtime or the only available way is using @DISPLAY command? I've looked in the guide but seems there isn't...

Regards, Fabio

[19 Feb 2009] Re: Fullscreen mode

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 Thu, 19 Feb 2009 12:25:41 -0800 (PST)

You can do it via hotkey (Amiga+Enter).

[19 Feb 2009] Re: Fullscreen mode

Posted: Sat Jun 13, 2020 5:32 pm
by Allanon
Note: This is an archived post that was originally sent to the Hollywood mailing list on Thu, 19 Feb 2009 23:35:19 -0000

Unfortunatly that's not enough... I must have the ability to turn on and off the fullscreen at runtime :(

[19 Feb 2009] Re: Re: Fullscreen mode

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 Thu, 19 Feb 2009 19:41:26 -0800 (PST)

Though certainly not as good as being able to change between window and fullscreen with an internal function, you could set up a function that would restart your program with an argument for fullscreen or window display, and then quit itself. Such as:

Code: Select all

Function p_ChangeDisplay(DisplayType$)
	If DisplayType$="window"
		Run("MyProgram -window")
		End
	ElseIf DisplayType$="screen"
		Run("MyProgram -fullscreen")
		End
	EndIf
EndFunction
If you don't want to have to start at the beginning of your program every time p_ChangeDisplay() is used, you could skip ahead to whatever function you want by passing additional arguments in the restart line, together with using GetCommandLine() at the start of your program to jump quickly to the desired point with something like:

Code: Select all

args, count=GetCommandLine()
If RawGet(args, 0)<>NIL and args[0].arg="???" Then ...
Again, I know that this is not as good as an internal function that would accomplish this without a restart, but it might help while we wait for Andreas to implement this functionality.

[20 Feb 2009] Re: Fullscreen mode

Posted: Sat Jun 13, 2020 5:32 pm
by Allanon
Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 20 Feb 2009 08:54:33 -0000

Thank you for the code snippet, I will try this approach.

Regards, Fabio.

[20 Feb 2009] Re: Re: Fullscreen mode

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 Fri, 20 Feb 2009 15:34:05 +0100
Unfortunatly that's not enough... I must have the ability to turn on and off the fullscreen at runtime :(
And extension for full screen switching via code is planned. It will be possible with ChangeDisplaySize() command then:

Code: Select all

; go full!
ChangeDisplaySize(640, 480, {FullScreen = True})

[19 Dec 2009] Re: Fullscreen mode

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 17:58:11 -0000

Hi ALL!

I'm looking for fullscreen change and found that interestinf disscussion... Any news bout if taht was working in Hollywood 4.5 and when it will be released?

Thank you and GOOD WORK!

Simone.