Merge pull request #1393 from SuperrSonic/master

(GX) Enable custom viewports in 240p
This commit is contained in:
Twinaphex 2015-02-07 05:31:32 +01:00
commit fe279c5c4b
2 changed files with 3 additions and 1 deletions

View File

@ -717,7 +717,7 @@ static void gx_resize(void *data)
#endif
GX_SetDispCopyGamma(g_extern.console.screen.gamma_correction);
if (gx->keep_aspect && gx_mode.efbHeight >= 480) /* ignore this for custom resolutions */
if (gx->keep_aspect && gx_mode.efbHeight >= 240) /* ignore this for custom resolutions */
{
float desired_aspect = g_extern.system.aspect_ratio;
if (desired_aspect == 0.0)

View File

@ -63,6 +63,7 @@ enum
GX_RESOLUTIONS_384_240,
GX_RESOLUTIONS_512_240,
GX_RESOLUTIONS_530_240,
GX_RESOLUTIONS_608_240,
GX_RESOLUTIONS_640_240,
GX_RESOLUTIONS_512_384,
GX_RESOLUTIONS_598_400,
@ -105,6 +106,7 @@ unsigned menu_gx_resolutions[GX_RESOLUTIONS_LAST][2] = {
{ 384, 240 },
{ 512, 240 },
{ 530, 240 },
{ 608, 240 },
{ 640, 240 },
{ 512, 384 },
{ 598, 400 },