mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
sdl, fix scaling for non-4:3 display
This commit is contained in:
parent
0924243a53
commit
ce79590af3
2 changed files with 28 additions and 31 deletions
|
@ -253,9 +253,9 @@ void plat_video_loop_prepare(void)
|
|||
{
|
||||
// take over any new vout settings
|
||||
plat_sdl_change_video_mode(g_menuscreen_w, g_menuscreen_h, 0);
|
||||
// switch over to scaled output if available
|
||||
// switch over to scaled output if available, but keep the aspect ratio
|
||||
if (plat_sdl_overlay != NULL || plat_sdl_gl_active) {
|
||||
g_screen_width = 320;
|
||||
g_screen_width = (240 * g_menuscreen_w / g_menuscreen_h) & ~1;
|
||||
g_screen_height = 240;
|
||||
g_screen_ppitch = g_screen_width;
|
||||
plat_sdl_change_video_mode(g_screen_width, g_screen_height, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue