From: kub Date: Mon, 22 Mar 2021 22:04:12 +0000 (+0100) Subject: add SDL SWSURFACE support X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2de059caceed8e552c53343304b954650f6ab4aa;p=libpicofe.git add SDL SWSURFACE support --- 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);