summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-04-03 17:00:56 +0000
committerDave Chapman <dave@dchapman.com>2006-04-03 17:00:56 +0000
commit9f4898a3f2f67c8b3323c8a1829f74087ac22eb9 (patch)
tree7f2759cb56952342f82dfe3f7cd233500da8c58a
parentee80e003b39d532326267e8539032b3e3e76d948 (diff)
downloadrockbox-9f4898a3f2f67c8b3323c8a1829f74087ac22eb9.tar.gz
rockbox-9f4898a3f2f67c8b3323c8a1829f74087ac22eb9.zip
Doom can't use the user timer at the same time as using the grayscale lib.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9459 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/doom/i_system.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/plugins/doom/i_system.c b/apps/plugins/doom/i_system.c
index 8a53f21b9f..d21777361b 100644
--- a/apps/plugins/doom/i_system.c
+++ b/apps/plugins/doom/i_system.c
@@ -16,7 +16,10 @@
// GNU General Public License for more details.
//
// $Log$
-// Revision 1.3 2006/04/02 12:45:29 amiconn
+// Revision 1.4 2006/04/03 17:00:56 dave
+// Doom can't use the user timer at the same time as using the grayscale lib.
+//
+// Revision 1.3 2006-04-02 12:45:29 amiconn
// Use TIMER_FREQ for timers in plugins. Fixes timer speed on iPod.
//
// Revision 1.2 2006-04-02 01:52:44 kkurbjun
@@ -50,7 +53,7 @@
// I_GetTime
// returns time in 1/35th second tics
//
-#if (CONFIG_CPU != PP5020)
+#if (CONFIG_CPU != PP5020) && !defined(HAVE_LCD_COLOR)
volatile unsigned int doomtimer=0;
void doomtime(void)
@@ -61,7 +64,7 @@ void doomtime(void)
int I_GetTime (void)
{
-#ifdef SIMULATOR
+#if defined(SIMULATOR) || !defined (HAVE_LCD_COLOR)
#if HZ==100
return ((7*(*rb->current_tick))/20);
#else
@@ -86,7 +89,7 @@ int I_GetTime (void)
// The game is much slower now (in terms of game speed).
void I_Init (void)
{
-#if (CONFIG_CPU != PP5020) && !defined(SIMULATOR)
+#if (CONFIG_CPU != PP5020) && !defined(SIMULATOR) && defined(HAVE_LCD_COLOR)
rb->timer_register(1, NULL, TIMER_FREQ/TICRATE, 1, doomtime);
#endif
I_InitSound();