add widescreen stretch option (#291)

This commit is contained in:
Logan McNaughton
2025-02-27 22:05:19 +01:00
committed by GitHub
parent ee77e75855
commit 7b51ca82eb
5 changed files with 28 additions and 4 deletions
+1 -1
View File
@@ -294,7 +294,7 @@ void rdp_close()
static void calculate_viewport(float *x, float *y, float *width, float *height)
{
const int32_t display_width = gfx_info.PAL ? 384 : 320;
const int32_t display_width = gfx_info.widescreen ? (gfx_info.PAL ? 512 : 426) : (gfx_info.PAL ? 384 : 320);
const int32_t display_height = gfx_info.PAL ? 288 : 240;
int w, h;