Skip to content

Commit 6b1ebca

Browse files
Do not start browser version in fullscreen mode
1 parent c9c2ce6 commit 6b1ebca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tommy.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -969,8 +969,10 @@ int main(int argc, char **argv) {
969969
SDL_Quit();
970970
return 1;
971971
}
972-
//start fullscreen (alternative for true fullscreen: SDL_WINDOW_FULLSCREEN)
973-
SDL_SetWindowFullscreen(win, SDL_WINDOW_FULLSCREEN_DESKTOP);
972+
//start fullscreen when not in browser (alternative for true fullscreen: SDL_WINDOW_FULLSCREEN)
973+
#ifndef __EMSCRIPTEN__
974+
SDL_SetWindowFullscreen(win, SDL_WINDOW_FULLSCREEN_DESKTOP);
975+
#endif
974976

975977
SDL_Renderer *ren = SDL_CreateRenderer(
976978
win, -1,

0 commit comments

Comments
 (0)