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. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401433
This commit is contained in:
parent
bb11c757f7
commit
e6d661762f
1 changed files with 3 additions and 0 deletions
|
@ -173,6 +173,8 @@ int main(int argc, char **argv)
|
||||||
quit(1);
|
quit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (vidflags & SDL_FULLSCREEN) SDL_ShowCursor (SDL_FALSE);
|
||||||
|
|
||||||
if(!(boat[0] = SDL_LoadBMP("sail.bmp")))
|
if(!(boat[0] = SDL_LoadBMP("sail.bmp")))
|
||||||
sdlerr("loading sail.bmp");
|
sdlerr("loading sail.bmp");
|
||||||
/* We've chosen magenta (#ff00ff) as colour key for the boat */
|
/* We've chosen magenta (#ff00ff) as colour key for the boat */
|
||||||
|
@ -333,6 +335,7 @@ int main(int argc, char **argv)
|
||||||
printf("%d frames, %.2f fps\n",
|
printf("%d frames, %.2f fps\n",
|
||||||
frames, 1000.0 * frames / (SDL_GetTicks() - start));
|
frames, 1000.0 * frames / (SDL_GetTicks() - start));
|
||||||
|
|
||||||
|
if (vidflags & SDL_FULLSCREEN) SDL_ShowCursor (SDL_TRUE);
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue