(Xbox 1) Small but necessary bug fix in screen resize code (rmenu)

This commit is contained in:
freakdave 2012-08-07 16:26:12 +02:00
parent ee77a2dac7
commit b174eb3f7a

View File

@ -1868,15 +1868,23 @@ static void ingame_menu_resize(item *items, menu *current_menu, uint64_t input)
gfx_ctx_set_aspect_ratio(NULL, g_console.aspect_ratio_index);
if(input & (1 << RETRO_DEVICE_ID_JOYPAD_ANALOG_LEFT_DPAD_LEFT))
#ifdef _XBOX1
{
#ifdef _XBOX
if(g_console.viewports.custom_vp.x >= 4)
#endif
{
g_console.viewports.custom_vp.x -= 4;
}
}
else if(input & (1 << RETRO_DEVICE_ID_JOYPAD_LEFT))
#ifdef _XBOX1
{
#ifdef _XBOX
if(g_console.viewports.custom_vp.x > 0)
#endif
{
g_console.viewports.custom_vp.x -= 1;
}
}
if(input & (1 << RETRO_DEVICE_ID_JOYPAD_ANALOG_LEFT_DPAD_RIGHT))
g_console.viewports.custom_vp.x += 4;
@ -1889,15 +1897,23 @@ static void ingame_menu_resize(item *items, menu *current_menu, uint64_t input)
g_console.viewports.custom_vp.y += 1;
if(input & (1 << RETRO_DEVICE_ID_JOYPAD_ANALOG_LEFT_DPAD_DOWN))
#ifdef _XBOX1
{
#ifdef _XBOX
if(g_console.viewports.custom_vp.y >= 4)
#endif
{
g_console.viewports.custom_vp.y -= 4;
}
}
else if(input & (1 << RETRO_DEVICE_ID_JOYPAD_DOWN))
#ifdef _XBOX1
{
#ifdef _XBOX
if(g_console.viewports.custom_vp.y > 0)
#endif
{
g_console.viewports.custom_vp.y -= 1;
}
}
if(input & (1 << RETRO_DEVICE_ID_JOYPAD_ANALOG_RIGHT_DPAD_LEFT))
g_console.viewports.custom_vp.width -= 4;