diff options
Diffstat (limited to 'apps/plugins/solitaire.c')
-rw-r--r-- | apps/plugins/solitaire.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c index 6b67ddb59c..45266c5a7d 100644 --- a/apps/plugins/solitaire.c +++ b/apps/plugins/solitaire.c | |||
@@ -1093,13 +1093,13 @@ int bouncing_cards( void ) | |||
1093 | vx = rb->rand()%8-5; | 1093 | vx = rb->rand()%8-5; |
1094 | if( !vx ) vx = -6; | 1094 | if( !vx ) vx = -6; |
1095 | 1095 | ||
1096 | vy = -rb->rand()%6; | 1096 | vy = -rb->rand()%(6<<8); |
1097 | 1097 | ||
1098 | while( x < LCD_WIDTH && x + CARD_WIDTH > 0 ) | 1098 | while( x < LCD_WIDTH && x + CARD_WIDTH > 0 ) |
1099 | { | 1099 | { |
1100 | vy += 1; | 1100 | vy += (1<<8); |
1101 | x += vx; | 1101 | x += vx; |
1102 | y += vy; | 1102 | y += vy >> 8; |
1103 | if( y + CARD_HEIGHT >= LCD_HEIGHT ) | 1103 | if( y + CARD_HEIGHT >= LCD_HEIGHT ) |
1104 | { | 1104 | { |
1105 | vy = -vy*3/4; | 1105 | vy = -vy*3/4; |