(Xbox 1) Added ifdef's to the viewport fix, i don't know if other platforms allow negative values.

This commit is contained in:
freakdave 2012-08-06 15:15:58 +02:00
parent 0da3b628c6
commit 64ef86ce06

View File

@ -1874,10 +1874,14 @@ 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
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
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))
@ -1891,10 +1895,14 @@ 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
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
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))