X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=libpicofe.git;a=blobdiff_plain;f=plat_sdl.c;fp=plat_sdl.c;h=530a9d76d6941b74c04d0cb996e645ac3b3a1a25;hp=97e2d29e35510a0b65e6018c0222031fbcd594f6;hb=7167e5f3376f0d0692ae102ed2df1ef5d2cc199a;hpb=33787db41d955f8dcafe833097f2cc87d70186ec diff --git a/plat_sdl.c b/plat_sdl.c index 97e2d29..530a9d7 100644 --- a/plat_sdl.c +++ b/plat_sdl.c @@ -125,7 +125,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);