mirror of https://github.com/OpenTTD/OpenTTD
(svn r35) -Fix Change SDL_HWSURFACE back to SDL_SWSURFACE (Diablo-3D); better performance
parent
5a0a007e45
commit
63a0313070
2
sdl.c
2
sdl.c
|
@ -295,7 +295,7 @@ static bool CreateMainSurface(int w, int h)
|
||||||
|
|
||||||
DEBUG(misc, 0) ("sdl: using mode %dx%d", w, h);
|
DEBUG(misc, 0) ("sdl: using mode %dx%d", w, h);
|
||||||
|
|
||||||
newscreen = SDL_CALL SDL_SetVideoMode(w, h, 8, SDL_HWSURFACE + SDL_HWPALETTE + (_fullscreen?SDL_FULLSCREEN:SDL_RESIZABLE));
|
newscreen = SDL_CALL SDL_SetVideoMode(w, h, 8, SDL_SWSURFACE + SDL_HWPALETTE + (_fullscreen?SDL_FULLSCREEN:SDL_RESIZABLE));
|
||||||
if(newscreen == NULL)
|
if(newscreen == NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue