add aspect ratio for sdl fullscreen
authorkub <derkub@gmail.com>
Tue, 22 Feb 2022 20:43:51 +0000 (20:43 +0000)
committerkub <derkub@gmail.com>
Tue, 22 Feb 2022 22:28:56 +0000 (22:28 +0000)
plat_sdl.c

index 6a86d1d..61e39c1 100644 (file)
@@ -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) {