From ff9f07e23f01e9cad50b3615e7c9487fbc3ac33e Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Mon, 7 May 2012 20:33:46 +0200 Subject: [PATCH] (PS3) Aspect ratio selection fix --- ps3/menu.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ps3/menu.c b/ps3/menu.c index bdaeee3ada..8fcbfedf45 100644 --- a/ps3/menu.c +++ b/ps3/menu.c @@ -1295,12 +1295,14 @@ static void producesettingentry(menu * menu_obj, uint64_t switchvalue) } if(CTRL_RIGHT(state) || CTRL_LSTICK_RIGHT(state)) { + g_console.aspect_ratio_index++; if(g_console.aspect_ratio_index < ASPECT_RATIO_END) { - g_console.aspect_ratio_index++; video_gl.set_aspect_ratio(NULL, g_console.aspect_ratio_index); set_delay = DELAY_SMALL; } + else + g_console.aspect_ratio_index = ASPECT_RATIO_END-1; } if(CTRL_START(state)) { @@ -2079,12 +2081,14 @@ static void ingame_menu(uint32_t menu_id) } if(CTRL_RIGHT(state) || CTRL_LSTICK_RIGHT(state)) { + g_console.aspect_ratio_index++; if(g_console.aspect_ratio_index < ASPECT_RATIO_END) { - g_console.aspect_ratio_index++; video_gl.set_aspect_ratio(NULL, g_console.aspect_ratio_index); set_delay = DELAY_LONG; } + else + g_console.aspect_ratio_index = ASPECT_RATIO_END-1; } if(CTRL_START(state)) {