From: kub Date: Thu, 22 May 2025 20:23:18 +0000 (+0200) Subject: make 2x default for overlay X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee0dca9e10ef44d7900c1158cd8025eb86064aeb;p=libpicofe.git make 2x default for overlay --- diff --git a/plat_sdl.c b/plat_sdl.c index 17a1f03..ffe22d9 100644 --- a/plat_sdl.c +++ b/plat_sdl.c @@ -114,7 +114,7 @@ int plat_sdl_change_video_mode(int w, int h, int force) plat_sdl_gl_active = 0; } - if (plat_target.vout_method == 0 || (force < 0 && (window_w != w || window_h != h + if (plat_target.vout_method == 0 || (force && (window_w != w || window_h != h || plat_target.vout_fullscreen != old_fullscreen))) { Uint32 flags = get_screen_flags(); int win_w = w; @@ -188,7 +188,7 @@ void plat_sdl_event_handler(void *event_) { int win_w = event->resize.w & ~3; int win_h = event->resize.h & ~3; - plat_sdl_change_video_mode(win_w, win_h, -1); + plat_sdl_change_video_mode(win_w, win_h, 1); } break; case SDL_ACTIVEEVENT: @@ -337,7 +337,7 @@ int plat_sdl_init(void) plat_target.vout_method = vout_mode_overlay = i; vout_list[i++] = "Video Overlay"; #ifdef SDL_OVERLAY_2X - vout_mode_overlay2x = i; + plat_target.vout_method = vout_mode_overlay2x = i; vout_list[i++] = "Video Overlay 2x"; #endif }