summaryrefslogtreecommitdiff
path: root/apps/plugins/jackpot.c
diff options
context:
space:
mode:
authorKevin Ferrare <kevin@rockbox.org>2007-07-28 05:42:55 +0000
committerKevin Ferrare <kevin@rockbox.org>2007-07-28 05:42:55 +0000
commit885cdfdeb98d54b2597e65f1b9ae9ab98da8286f (patch)
treea8e92b9a1038013875d37b9abed017bdef9299cc /apps/plugins/jackpot.c
parentffa978d54d6a89ba2d670c4598dba74f45ec08d3 (diff)
downloadrockbox-885cdfdeb98d54b2597e65f1b9ae9ab98da8286f.zip
rockbox-885cdfdeb98d54b2597e65f1b9ae9ab98da8286f.tar.gz
rockbox-885cdfdeb98d54b2597e65f1b9ae9ab98da8286f.tar.bz2
rockbox-885cdfdeb98d54b2597e65f1b9ae9ab98da8286f.tar.xz
fixed the speed problem on bitmaps LCD for the jackpot plugin and added the remote key bindings for h1x0 and x5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14034 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/jackpot.c')
-rw-r--r--apps/plugins/jackpot.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/plugins/jackpot.c b/apps/plugins/jackpot.c
index bcb12f1..e5518b7 100644
--- a/apps/plugins/jackpot.c
+++ b/apps/plugins/jackpot.c
@@ -41,6 +41,7 @@ static unsigned char jackpot_slots_patterns[]={
0x00, 0x0A, 0x1F, 0x1F, 0x1F, 0x0e, 0x04 /* (+63)Heart */
};
static unsigned long char_patterns[NB_SLOTS];
+#define SLEEP_TIME (HZ/24)
#else /* bitmaps LCDs */
#define PICTURE_HEIGHT (BMPHEIGHT_jackpot_slots/(NB_PICTURES+1))
@@ -48,7 +49,7 @@ static unsigned long char_patterns[NB_SLOTS];
#define PICTURE_ROTATION_STEPS PICTURE_HEIGHT
#else
#define REMOTE_PICTURE_HEIGHT (BMPHEIGHT_jackpot_slots_remote/(NB_PICTURES+1))
-#define PICTURE_ROTATION_STEPS (REMOTE_PICTURE_HEIGHT*PICTURE_HEIGHT)
+#define PICTURE_ROTATION_STEPS REMOTE_PICTURE_HEIGHT
#endif
struct jackpot_picture{
@@ -77,7 +78,7 @@ const struct jackpot_picture jackpot_pictures[]={
}
#endif
};
-
+#define SLEEP_TIME (HZ/100)
#endif /* HAVE_LCD_CHARCELLS */
static struct plugin_api* rb;
@@ -300,7 +301,7 @@ void jackpot_play_turn(struct jackpot* game)
}
FOR_NB_SCREENS(d)
jackpot_display_slot_machine(game, rb->screens[d]);
- rb->sleep(7*HZ/(24*PICTURE_ROTATION_STEPS));
+ rb->sleep(SLEEP_TIME);
}
gain=jackpot_get_gain(game);
if(gain!=0)