X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plat_sdl.c;h=6a86d1d073e3dbc292a79be7b3f15ec18fefdd7f;hb=cfb49ab9095bcfda705cd685d36ef4b4df6ea96e;hp=6510fc1b93d7337911294f8ebcde9fec39a6b707;hpb=c668921a45b7a7f5f548d0e09836f143f56b4ae0;p=libpicofe.git diff --git a/plat_sdl.c b/plat_sdl.c index 6510fc1..6a86d1d 100644 --- a/plat_sdl.c +++ b/plat_sdl.c @@ -123,7 +123,9 @@ int plat_sdl_change_video_mode(int w, int h, int force) if (plat_target.vout_method == 0) { SDL_PumpEvents(); -#if defined(SDL_TRIPLEBUF) && defined(SDL_BUFFER_3X) +#if defined SDL_SURFACE_SW + plat_sdl_screen = SDL_SetVideoMode(w, h, 16, SDL_SWSURFACE); +#elif defined(SDL_TRIPLEBUF) && defined(SDL_BUFFER_3X) plat_sdl_screen = SDL_SetVideoMode(w, h, 16, SDL_HWSURFACE | SDL_TRIPLEBUF); #else plat_sdl_screen = SDL_SetVideoMode(w, h, 16, SDL_HWSURFACE | SDL_DOUBLEBUF);