summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-09-22 22:44:57 +0000
committerJens Arnold <amiconn@rockbox.org>2006-09-22 22:44:57 +0000
commit32e6f114aabc0939a5c5db16a6ad650efcfc7f18 (patch)
tree72e99092a508e4d0b1f662840b6159eab25506b6 /apps
parent435c8254943567e8667e7f79109f37f12913a688 (diff)
downloadrockbox-32e6f114aabc0939a5c5db16a6ad650efcfc7f18.tar.gz
rockbox-32e6f114aabc0939a5c5db16a6ad650efcfc7f18.zip
Tweaked the card animation a bit more.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11028 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/solitaire.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c
index a0423b133a..7ccce3daf3 100644
--- a/apps/plugins/solitaire.c
+++ b/apps/plugins/solitaire.c
@@ -1015,7 +1015,7 @@ enum { SOLITAIRE_WIN, SOLITAIRE_QUIT, SOLITAIRE_USB };
1015 1015
1016#define BC_ACCEL ((1<<16)*LCD_HEIGHT/128) 1016#define BC_ACCEL ((1<<16)*LCD_HEIGHT/128)
1017#define BC_MYSPEED (6*BC_ACCEL) 1017#define BC_MYSPEED (6*BC_ACCEL)
1018#define BC_MXSPEED (6*LCD_WIDTH/160) 1018#define BC_MXSPEED (6*LCD_HEIGHT/128)
1019 1019
1020int bouncing_cards( void ) 1020int bouncing_cards( void )
1021{ 1021{
@@ -1036,9 +1036,15 @@ int bouncing_cards( void )
1036 x = LCD_WIDTH-(CARD_WIDTH*4+4+MARGIN)+CARD_WIDTH*j+j+1; 1036 x = LCD_WIDTH-(CARD_WIDTH*4+4+MARGIN)+CARD_WIDTH*j+j+1;
1037 fp_y = MARGIN<<16; 1037 fp_y = MARGIN<<16;
1038 1038
1039#if LCD_WIDTH > 200
1040 vx = rb->rand() % (4*BC_MXSPEED/3-2) - BC_MXSPEED;
1041 if( vx >= -1 )
1042 vx += 3;
1043#else
1039 vx = rb->rand() % (4*BC_MXSPEED/3) - BC_MXSPEED; 1044 vx = rb->rand() % (4*BC_MXSPEED/3) - BC_MXSPEED;
1040 if( vx >= 0 ) 1045 if( vx >= 0 )
1041 vx++; 1046 vx++;
1047#endif
1042 1048
1043 fp_vy = -rb->rand() % BC_MYSPEED; 1049 fp_vy = -rb->rand() % BC_MYSPEED;
1044 1050