From: notaz Date: Mon, 16 Jul 2012 00:06:58 +0000 (+0300) Subject: frontend: avoid potential alignment fault X-Git-Tag: r15~27 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=commitdiff_plain;h=33344895eb142f2529c9d7333f14d1ac83102837 frontend: avoid potential alignment fault --- diff --git a/frontend/menu.c b/frontend/menu.c index d34b7f9d..3ebe9f5d 100644 --- a/frontend/menu.c +++ b/frontend/menu.c @@ -1444,8 +1444,8 @@ static void debug_menu_loop(void) if (inp & PBTN_MBACK) break; else if (inp & PBTN_UP) { if (df_y > 0) df_y--; } else if (inp & PBTN_DOWN) { if (df_y < 512 - g_menuscreen_h) df_y++; } - else if (inp & PBTN_LEFT) { if (df_x > 0) df_x--; } - else if (inp & PBTN_RIGHT) { if (df_x < 1024 - g_menuscreen_w) df_x++; } + else if (inp & PBTN_LEFT) { if (df_x > 0) df_x -= 2; } + else if (inp & PBTN_RIGHT) { if (df_x < 1024 - g_menuscreen_w) df_x += 2; } } free(gpuf);