From 33344895eb142f2529c9d7333f14d1ac83102837 Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 16 Jul 2012 03:06:58 +0300 Subject: [PATCH] frontend: avoid potential alignment fault --- frontend/menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5