From: kub <derkub@gmail.com>
Date: Tue, 22 Feb 2022 20:43:51 +0000 (+0000)
Subject: add aspect ratio for sdl fullscreen
X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81b1aa54a4d31f43f8f6d72c95a7898b2a871791;p=libpicofe.git

add aspect ratio for sdl fullscreen
---

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) {