ChangeDisplayMode(mode[, width, height, table])
ChangeDisplayMode()will switch the currently active display from full screen into windowed mode. If you pass
mode, there will be a switch from windowed to full screen mode and you can use the
heightarguments to tell Hollywood the resolution it shall switch the display's monitor into. If you don't pass these two optional arguments together with
#DISPMODE_FULLSCREEN, the display's current dimensions will be used.
If the display is already in full screen mode and you pass
in the mode argument,
ChangeDisplayMode() can be used to change the
current monitor resolution to a different one.
Starting with Hollywood 6.0 it is possible to have more than one display in full screen mode since Hollywood 6.0 introduces support for multiple monitors. This makes it possible to have several displays running in full screen mode on separate displays.
To find out whether or not the desired display mode can be handled by the current monitor, use the GetDisplayModes() function.
Starting with Hollywood 6.0 this function accepts an optional table argument which allows you to configure further options:
Backfilltag of the @DISPLAY preprocessor command. See DISPLAY for details.
Starting with Hollywood 7.0 you can also pass the special constant
height parameters. In that case, Hollywood will use the
dimensions of the display's host device.
#DISPMODE_FULLSCREEN(defaults to current display width)
#DISPMODE_FULLSCREEN(defaults to current display height)
ChangeDisplayMode(#DISPMODE_FULLSCREEN, 1024, 768) NPrint("We are now in full screen mode. Press left mouse to return\n" .. "to windowed mode.") WaitLeftMouse ChangeDisplayMode(#DISPMODE_WINDOWED) NPrint("We are back in windowed mode now.") WaitLeftMouseThe code above goes into 1024x768 full screen mode, waits for left mouse button to be pressed and then returns to windowed mode again.