I have a switch in my program that toggles between "windowed" mode and "full screen" mode. The problem occurs when I execute the MESSAGE() command. While in "windowed" mode message is displayed and program behaves as expected.
But if in "full screen" mode, the background screen of program goes away and all you see is your desktop and the message that you wanted to display. Once you hit the
"OK" button the programs background is restored as before.
I wrote simplified version of this issue and was able to recreate it.
global dWD#=0.0
global dHT#=0.0
global fullScreen=0 // 1 = full screen, 0 = windowed
dWD# = GetMaxDeviceWidth()
dHT# = GetMaxDeviceHeight()
SetWindowSize( dWD#, dHT#, fullScreen)
do
if GetRawKeyPressed(27) = 1
if fullScreen = 1
message("FULL SCREEN")
else
message("WINDOWED")
endif
end
endif
Print( ScreenFPS() )
Sync()
loop
Is their a work around or did I do something wrong?
Thanks!
YOLO! Make it a good one!