PAL aspect ratio adjustment (#242)
This commit is contained in:
parent
b67268ff62
commit
0faf33fcfa
@ -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;
|
||||
|
||||
@ -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