X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plat_sdl.c;h=ab606bb98328a2a35539ee3a36fc576a4a7cbfda;hb=b0dc47eceaea9f1c77ee0f4bc0ba5b3fc9af383c;hp=9b78d056785fc180009f0c287f65eb1516dfdaf3;hpb=811cef4d9f3772d0bbf6c1f0434e5860c9550abc;p=libpicofe.git diff --git a/plat_sdl.c b/plat_sdl.c index 9b78d05..ab606bb 100644 --- a/plat_sdl.c +++ b/plat_sdl.c @@ -123,7 +123,11 @@ 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) + 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); +#endif if (plat_sdl_screen == NULL) { fprintf(stderr, "SDL_SetVideoMode failed: %s\n", SDL_GetError()); return -1; @@ -291,6 +295,7 @@ int plat_sdl_init(void) } plat_target.vout_methods = vout_list; + plat_sdl_change_video_mode(g_menuscreen_w, g_menuscreen_h, 1); return 0; fail: