1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Antoine Cellerier 2006-09-05 20:54:46 +00:00
parent b0f257721f
commit 9db73f40e7

View file

@ -1133,10 +1133,12 @@ int bouncing_cards( void )
vy = -vy*3/4;
y = LCD_HEIGHT - CARD_HEIGHT;
}
draw_card( deck[j*CARDS_PER_SUIT+i], x, y, false, false, false );
rb->lcd_update();
draw_card( deck[j*CARDS_PER_SUIT+i], x, y,
false, false, false );
rb->lcd_update_rect( x<0?0:x, y<0?0:y,
CARD_WIDTH+1, CARD_HEIGHT+1 );
button = rb->button_get( false );
button = rb->button_get_w_tmo( 1 );
if( rb->default_event_handler( button ) == SYS_USB_CONNECTED )
return SOLITAIRE_USB;
if( button == SOL_QUIT || button == SOL_MOVE )