mirror of
https://github.com/gopher64/gopher64.git
synced 2026-11-14 18:19:04 +01:00
add widescreen stretch option (#291)
This commit is contained in:
1 parent
ee77e75855
commit
7b51ca82eb
5 files changed
+28
-4
No files matched your search
@@ -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;
|
||||
|
||||
@@ -17,6 +17,7 @@ extern "C"
|
||||
uint32_t *DPC_END_REG;
|
||||
uint32_t *DPC_STATUS_REG;
|
||||
bool PAL;
|
||||
bool widescreen;
|
||||
} GFX_INFO;
|
||||
|
||||
typedef struct
|
||||
|
||||
Reference in new issue
Block a user