From 81b1aa54a4d31f43f8f6d72c95a7898b2a871791 Mon Sep 17 00:00:00 2001 From: kub Date: Tue, 22 Feb 2022 20:43:51 +0000 Subject: [PATCH] add aspect ratio for sdl fullscreen --- plat_sdl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plat_sdl.c b/plat_sdl.c index 6a86d1d..61e39c1 100644 --- a/plat_sdl.c +++ b/plat_sdl.c @@ -218,6 +218,8 @@ int plat_sdl_init(void) if (g_menuscreen_h > h) g_menuscreen_h = h; } + if (plat_target.vout_fullscreen) + g_menuscreen_w = g_menuscreen_h * fs_w / fs_h; ret = plat_sdl_change_video_mode(g_menuscreen_w, g_menuscreen_h, 1); if (ret != 0) { -- 2.39.5