diff options
author | Antoine Cellerier <dionoea@videolan.org> | 2006-09-05 20:54:46 +0000 |
---|---|---|
committer | Antoine Cellerier <dionoea@videolan.org> | 2006-09-05 20:54:46 +0000 |
commit | 9db73f40e75852c9147ce38869cb2f4e326e5b8f (patch) | |
tree | 4d92e9dcfa5cdda7071eb4b6ec24fce0edd32157 | |
parent | b0f257721f7d5876fe8d97794397106f4f6e3df6 (diff) | |
download | rockbox-9db73f40e75852c9147ce38869cb2f4e326e5b8f.tar.gz rockbox-9db73f40e75852c9147ce38869cb2f4e326e5b8f.zip |
Add some yielding during the bouncing cards sequence (and only refresh what's needed)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10893 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/solitaire.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c index 6577f69ada..291c9efe3e 100644 --- a/apps/plugins/solitaire.c +++ b/apps/plugins/solitaire.c | |||
@@ -1133,10 +1133,12 @@ int bouncing_cards( void ) | |||
1133 | vy = -vy*3/4; | 1133 | vy = -vy*3/4; |
1134 | y = LCD_HEIGHT - CARD_HEIGHT; | 1134 | y = LCD_HEIGHT - CARD_HEIGHT; |
1135 | } | 1135 | } |
1136 | draw_card( deck[j*CARDS_PER_SUIT+i], x, y, false, false, false ); | 1136 | draw_card( deck[j*CARDS_PER_SUIT+i], x, y, |
1137 | rb->lcd_update(); | 1137 | false, false, false ); |
1138 | rb->lcd_update_rect( x<0?0:x, y<0?0:y, | ||
1139 | CARD_WIDTH+1, CARD_HEIGHT+1 ); | ||
1138 | 1140 | ||
1139 | button = rb->button_get( false ); | 1141 | button = rb->button_get_w_tmo( 1 ); |
1140 | if( rb->default_event_handler( button ) == SYS_USB_CONNECTED ) | 1142 | if( rb->default_event_handler( button ) == SYS_USB_CONNECTED ) |
1141 | return SOLITAIRE_USB; | 1143 | return SOLITAIRE_USB; |
1142 | if( button == SOL_QUIT || button == SOL_MOVE ) | 1144 | if( button == SOL_QUIT || button == SOL_MOVE ) |