mirror of
https://github.com/gopher64/gopher64.git
synced 2026-11-15 18:39:40 +01:00
PAL aspect ratio adjustment (#242)
This commit is contained in:
1 parent
b67268ff62
commit
0faf33fcfa
2 files changed
+2
-2
No files matched your search
@@ -245,7 +245,7 @@ void rdp_close()
|
||||
|
||||
static void calculate_viewport(float *x, float *y, float *width, float *height)
|
||||
{
|
||||
const int32_t display_width = gfx_info.PAL ? 360 : 320;
|
||||
const int32_t display_width = gfx_info.PAL ? 384 : 320;
|
||||
const int32_t display_height = gfx_info.PAL ? 288 : 240;
|
||||
|
||||
int w, h;
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ pub fn init(device: &mut device::Device) {
|
||||
let mut window_width = 640;
|
||||
let mut window_height = 480;
|
||||
if device.cart.pal {
|
||||
window_width = 720;
|
||||
window_width = 768;
|
||||
window_height = 576;
|
||||
}
|
||||
device.ui.window = unsafe {
|
||||
|
||||
Reference in new issue
Block a user