frontend: avoid potential alignment fault
authornotaz <notasas@gmail.com>
Mon, 16 Jul 2012 00:06:58 +0000 (03:06 +0300)
committernotaz <notasas@gmail.com>
Wed, 18 Jul 2012 20:56:54 +0000 (23:56 +0300)
frontend/menu.c

index d34b7f9..3ebe9f5 100644 (file)
@@ -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);