Mercurial > sdl-ios-xcode
changeset 1429:aff0170f9f1b
Date: Sat, 25 Feb 2006 14:26:19 +0100 (CET)
From: "Torsten Giebl"
Subject: [SDL] testpalette.diff
To get rid of Mousecursor Fullscreen problems on Mac OSX.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 25 Feb 2006 15:01:44 +0000 |
parents | 5f52867ba65c |
children | df0bcc9c7c95 |
files | test/testpalette.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/test/testpalette.c Fri Feb 24 18:24:57 2006 +0000 +++ b/test/testpalette.c Sat Feb 25 15:01:44 2006 +0000 @@ -173,6 +173,8 @@ quit(1); } + if (vidflags & SDL_FULLSCREEN) SDL_ShowCursor (SDL_FALSE); + if(!(boat[0] = SDL_LoadBMP("sail.bmp"))) sdlerr("loading sail.bmp"); /* We've chosen magenta (#ff00ff) as colour key for the boat */ @@ -333,6 +335,7 @@ printf("%d frames, %.2f fps\n", frames, 1000.0 * frames / (SDL_GetTicks() - start)); + if (vidflags & SDL_FULLSCREEN) SDL_ShowCursor (SDL_TRUE); SDL_Quit(); return 0; }