If I run this code:
SetWindowSize( 1024, 768, 0 )
do
//Press SPACE to load file
if GetRawKeyPressed(32)
fn$ = ChooseRawFile("*.png", 1)
if fn$<>""
LoadSprite("raw:"+fn$)
endif
endif
//Press ESCAPE to end
if GetRawKeyPressed(27) then end
Print( ScreenFPS() )
Sync()
loop
Everything works as expected.
However, if I change the full screen mode to true and run the code, AppGameKit freezes up.
SetWindowSize( 1024, 768, 1 )
do
//Press SPACE to load file
if GetRawKeyPressed(32)
fn$ = ChooseRawFile("*.png", 1)
if fn$<>""
LoadSprite("raw:"+fn$)
endif
endif
//Press ESCAPE to end
if GetRawKeyPressed(27) then end
Print( ScreenFPS() )
Sync()
loop
The reason I've put a question mark in the title is because it is possible that the failure is caused not by AppGameKit but by the combination of AppGameKit and "Desktops". I'm running "Desktops" to give myself virtual desktops and when I run the code above in full screen mode I can get around the the freezing up by switching to another desktop and back.
I won't know if this is truly a bug unless somebody else tries it that isn't using virtual desktops.