macos x fix
This commit is contained in:
parent
c95eef8d06
commit
424dbf87b0
|
@ -933,7 +933,7 @@ int gfx_modes(void)
|
|||
int i = 0;
|
||||
SDL_Rect** modes;
|
||||
#ifdef __APPLE__
|
||||
modes = SDL_ListModes(NULL, SDL_FULLSCREEN | SDL_HWSURFACE | SDL_ANYFORMAT);
|
||||
modes = SDL_ListModes(NULL, SDL_FULLSCREEN | SDL_SWSURFACE | SDL_ANYFORMAT);
|
||||
#else
|
||||
modes = SDL_ListModes(NULL, SDL_FULLSCREEN | SDL_HWSURFACE | SDL_DOUBLEBUF | SDL_ANYFORMAT);
|
||||
#endif
|
||||
|
@ -1041,9 +1041,9 @@ int gfx_set_mode(int w, int h, int fs)
|
|||
SDL_ShowCursor(SDL_DISABLE);
|
||||
#ifndef MAEMO
|
||||
#ifdef __APPLE__
|
||||
screen = SDL_SetVideoMode(gfx_width, gfx_height, 0, SDL_HWSURFACE | ( ( fs ) ? SDL_FULLSCREEN : 0 ) );
|
||||
screen = SDL_SetVideoMode(gfx_width, gfx_height, (fs)?32:0, SDL_SWSURFACE | ( ( fs ) ? SDL_FULLSCREEN : 0 ) );
|
||||
if (screen == NULL) /* ok, fallback to anyformat */
|
||||
screen = SDL_SetVideoMode(gfx_width, gfx_height, 0, SDL_ANYFORMAT | SDL_HWSURFACE | ( ( fs ) ? SDL_FULLSCREEN : 0 ) );
|
||||
screen = SDL_SetVideoMode(gfx_width, gfx_height, 0, SDL_ANYFORMAT | SDL_SWSURFACE | ( ( fs ) ? SDL_FULLSCREEN : 0 ) );
|
||||
#else
|
||||
#ifndef _WIN32_WCE
|
||||
screen = SDL_SetVideoMode(gfx_width, gfx_height, (fs)?32:0, SDL_DOUBLEBUF | SDL_HWSURFACE | ( ( fs ) ? SDL_FULLSCREEN : 0 ) );
|
||||
|
|
Reference in a new issue