Having multiple AppGameKit Studio scenes in a game works great but when you run the scene_setup() command on a Windows PC it reruns the SetVirtualResolution and SetWindowSize commands. If the player has maximised the game window this causes it to jump back down to windowed mode when you setup the scene.
Here is the code that is automatically inserted into the scene which is causing the issue:
function myscene1_create_window( winflag as integer )
myscene1_change_window = winflag
endfunction
function myscene1_setup()
if myscene1_loaded = 1 then exitfunction
myscene1_loaded = 1
if myscene1_change_window = 1
SetVirtualResolution(myscene1_base_width,myscene1_base_height)
SetWindowSize(myscene1_device_width,myscene1_device_height,0)
SetClearColor(0,0,0)
endif
...
I could change the line
if myscene1_change_window = 1 to be
if myscene1_change_window = 99 but am worried it will put it back if I edit the scene in the future. Is there a proper way to prevent it resetting the resolution and window size when setting up a scene?