fix PAL aspect ratio (#241)

This commit is contained in:
Logan McNaughton
2025-02-12 09:19:39 +01:00
committed by GitHub
parent bda50f8d9d
commit b67268ff62
3 changed files with 14 additions and 4 deletions
+2 -2
View File
@@ -245,8 +245,8 @@ void rdp_close()
static void calculate_viewport(float *x, float *y, float *width, float *height)
{
const int32_t display_width = 320;
const int32_t display_height = 240;
const int32_t display_width = gfx_info.PAL ? 360 : 320;
const int32_t display_height = gfx_info.PAL ? 288 : 240;
int w, h;
SDL_GetWindowSize(window, &w, &h);