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