X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fplat_sdl.c;h=9862e2b368059aef1bbee3596d42574c923d3541;hp=36611498fb2d3a638e4cb437fa38f69911dfaaaa;hb=eac3852265815a2e57ea9987a2bea2fcadd3f022;hpb=c9099d020a1e523d97541f426f7d44da1392526f diff --git a/frontend/plat_sdl.c b/frontend/plat_sdl.c index 36611498..9862e2b3 100644 --- a/frontend/plat_sdl.c +++ b/frontend/plat_sdl.c @@ -99,11 +99,16 @@ static int change_video_mode(int w, int h) if ((long)overlay->pixels[0] & 3) fprintf(stderr, "warning: overlay pointer is unaligned\n"); - if (!overlay->hw_overlay) - fprintf(stderr, "warning: video overlay is not hardware accelerated," - " you may want to disable it.\n"); - overlay_clear(); + if (!overlay->hw_overlay) { + fprintf(stderr, "warning: video overlay is not hardware accelerated, " + "disabling it.\n"); + g_use_overlay = 0; + SDL_FreeYUVOverlay(overlay); + overlay = NULL; + } + else + overlay_clear(); } else { fprintf(stderr, "warning: could not create overlay.\n");