summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-02-26 21:24:29 +0000
committerThomas Martitz <kugel@rockbox.org>2009-02-26 21:24:29 +0000
commitb0232e040277366100910ea41994bea4c49f8db1 (patch)
tree99d99095bfc84ae4c4b14c2f0af744150b08c1eb /apps
parent1e3f52992110d75f1df8c2256d7d6759e9f997fd (diff)
Correct the preprocessor condition introduced in r20112, also include FS#9958 by Alexander Levin.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20117 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/chessbox/chessbox.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/plugins/chessbox/chessbox.c b/apps/plugins/chessbox/chessbox.c
index 94b829b1c8..c1e6092f3a 100644
--- a/apps/plugins/chessbox/chessbox.c
+++ b/apps/plugins/chessbox/chessbox.c
@@ -25,7 +25,12 @@
#ifdef HAVE_LCD_BITMAP
-#if (MEMORYSIZE <= 8) && !defined(SIMULATOR) /* Lowmem doesn't have playback in chessbox */
+#if (MEMORYSIZE > 8) /* Lowmem doesn't have playback in chessbox */
+#define HAVE_PLAYBACK_CONTROL
+#endif
+
+
+#ifdef HAVE_PLAYBACK_CONTROL
#include "lib/playback_control.h"
#endif
@@ -592,7 +597,7 @@ static int cb_menu(void)
MENUITEM_STRINGLIST(menu,"Chessbox Menu",NULL,"New Game","Resume Game",
"Save Game", "Restore Game",
-#if (MEMORYSIZE <= 8) && !defined(SIMULATOR) /* Lowmem doesn't have playback in chessbox */
+#ifdef HAVE_PLAYBACK_CONTROL
"Playback Control",
#endif
"Quit");
@@ -618,7 +623,7 @@ static int cb_menu(void)
menu_quit = true;
break;
case 4:
-#if (MEMORYSIZE <= 8) && !defined(SIMULATOR) /* Lowmem doesn't have playback in chessbox */
+#ifdef HAVE_PLAYBACK_CONTROL
playback_control(NULL);
break;
case 5: