Hot damn, SDL_WM_ToggleFullScreen() works on all platforms now. :)
authorSam Lantinga <slouken@libsdl.org>
Wed, 16 Feb 2011 00:45:10 -0800
changeset 5307 89a8263374ac
parent 5306 cf3cd833dcd3
child 5308 50ceebd6e12f
Hot damn, SDL_WM_ToggleFullScreen() works on all platforms now. :)
test/testalpha.c
--- a/test/testalpha.c	Wed Feb 16 00:11:48 2011 -0800
+++ b/test/testalpha.c	Wed Feb 16 00:45:10 2011 -0800
@@ -514,6 +514,9 @@
                 if (event.key.keysym.sym == SDLK_ESCAPE) {
                     done = 1;
                 }
+                if (event.key.keysym.sym == SDLK_RETURN) {
+                    SDL_WM_ToggleFullScreen(screen);
+                }
                 break;
             case SDL_QUIT:
                 done = 1;