diff options
author | notaz | 2012-07-16 03:06:58 +0300 |
---|---|---|
committer | notaz | 2012-07-18 23:56:54 +0300 |
commit | 33344895eb142f2529c9d7333f14d1ac83102837 (patch) | |
tree | 7a5214211fa9a337b4107230410ea946875db5b3 /frontend | |
parent | 02455d0db3002033a703f443a24b7369c0efc6d0 (diff) | |
download | pcsx_rearmed-33344895eb142f2529c9d7333f14d1ac83102837.tar.gz pcsx_rearmed-33344895eb142f2529c9d7333f14d1ac83102837.tar.bz2 pcsx_rearmed-33344895eb142f2529c9d7333f14d1ac83102837.zip |
frontend: avoid potential alignment fault
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/menu.c b/frontend/menu.c index d34b7f9..3ebe9f5 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); |