mirror of
https://github.com/libretro/RetroArch
synced 2025-03-22 07:21:15 +00:00
(PSP) Hack - Get around FPU exception - division by zero
This commit is contained in:
parent
6a6f56a82e
commit
94d70b6aba
@ -1,4 +1,5 @@
|
|||||||
RARCH_VERSION = "0.9.9.3"
|
RARCH_VERSION = "0.9.9.3"
|
||||||
|
BUILD_PRX = 1
|
||||||
|
|
||||||
HAVE_FILE_LOGGER = 1
|
HAVE_FILE_LOGGER = 1
|
||||||
|
|
||||||
|
@ -251,7 +251,12 @@ void gfx_set_config_viewport(void)
|
|||||||
if (geom->aspect_ratio > 0.0f && g_settings.video.aspect_ratio_auto)
|
if (geom->aspect_ratio > 0.0f && g_settings.video.aspect_ratio_auto)
|
||||||
aspectratio_lut[ASPECT_RATIO_CONFIG].value = geom->aspect_ratio;
|
aspectratio_lut[ASPECT_RATIO_CONFIG].value = geom->aspect_ratio;
|
||||||
else
|
else
|
||||||
|
#ifdef PSP
|
||||||
|
// Get around division by zero error
|
||||||
|
aspectratio_lut[ASPECT_RATIO_CONFIG].value = 1.0f; // 1:1 PAR.
|
||||||
|
#else
|
||||||
aspectratio_lut[ASPECT_RATIO_CONFIG].value = (float)geom->base_width / geom->base_height; // 1:1 PAR.
|
aspectratio_lut[ASPECT_RATIO_CONFIG].value = (float)geom->base_width / geom->base_height; // 1:1 PAR.
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
aspectratio_lut[ASPECT_RATIO_CONFIG].value = g_settings.video.aspect_ratio;
|
aspectratio_lut[ASPECT_RATIO_CONFIG].value = g_settings.video.aspect_ratio;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user