mirror of
https://github.com/libretro/RetroArch.git
synced 2025-03-01 06:05:53 +00:00
Make sure ASPECT_RATIO_CUSTOM is set to something sane.
This commit is contained in:
parent
02600424eb
commit
9ce4684e14
@ -266,6 +266,10 @@ rgui_handle_t *rgui_init(void)
|
||||
aspectratio_lut[ASPECT_RATIO_CUSTOM].value =
|
||||
(float)custom->width / custom->height;
|
||||
}
|
||||
else if (DEFAULT_ASPECT_RATIO > 0.0f)
|
||||
aspectratio_lut[ASPECT_RATIO_CUSTOM].value = DEFAULT_ASPECT_RATIO;
|
||||
else
|
||||
aspectratio_lut[ASPECT_RATIO_CUSTOM].value = 4.0f / 3.0f; // Something arbitrary
|
||||
|
||||
return rgui;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user