Date: Sat, 25 Feb 2006 14:26:19 +0100 (CET)
authorSam Lantinga <slouken@libsdl.org>
Sat, 25 Feb 2006 15:01:44 +0000
changeset 1429aff0170f9f1b
parent 1428 5f52867ba65c
child 1430 df0bcc9c7c95
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.
test/testpalette.c
     1.1 --- a/test/testpalette.c	Fri Feb 24 18:24:57 2006 +0000
     1.2 +++ b/test/testpalette.c	Sat Feb 25 15:01:44 2006 +0000
     1.3 @@ -173,6 +173,8 @@
     1.4  	quit(1);
     1.5      }
     1.6  
     1.7 +    if (vidflags & SDL_FULLSCREEN) SDL_ShowCursor (SDL_FALSE);
     1.8 +
     1.9      if(!(boat[0] = SDL_LoadBMP("sail.bmp")))
    1.10  	sdlerr("loading sail.bmp");
    1.11      /* We've chosen magenta (#ff00ff) as colour key for the boat */
    1.12 @@ -333,6 +335,7 @@
    1.13      printf("%d frames, %.2f fps\n",
    1.14  	   frames, 1000.0 * frames / (SDL_GetTicks() - start));
    1.15  
    1.16 +    if (vidflags & SDL_FULLSCREEN) SDL_ShowCursor (SDL_TRUE);
    1.17      SDL_Quit();
    1.18      return 0;
    1.19  }