notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
02455d0
)
frontend: avoid potential alignment fault
author
notaz
<notasas@gmail.com>
Mon, 16 Jul 2012 00:06:58 +0000
(
03:06
+0300)
committer
notaz
<notasas@gmail.com>
Wed, 18 Jul 2012 20:56:54 +0000
(23:56 +0300)
frontend/menu.c
patch
|
blob
|
blame
|
history
diff --git
a/frontend/menu.c
b/frontend/menu.c
index
d34b7f9
..
3ebe9f5
100644
(file)
--- 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++; }
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);
}
free(gpuf);