From e0cb0f68934db522031433f38ca6f909c039e22e Mon Sep 17 00:00:00 2001 From: Antoine Cellerier Date: Tue, 5 Sep 2006 21:47:31 +0000 Subject: Untested cursor display fix when no cards are left/drawn on the remains stack. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10894 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/solitaire.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'apps/plugins/solitaire.c') diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c index 291c9efe3e..7b6de208d7 100644 --- a/apps/plugins/solitaire.c +++ b/apps/plugins/solitaire.c @@ -1307,10 +1307,11 @@ int solitaire( void ) j += NUMBER_WIDTH+2; } } - else if( cur_rem == NOT_A_CARD && cur_col == REM_COL ) - { - draw_cursor( CARD_WIDTH+2*MARGIN+1, MARGIN ); - } + } + if( ( cur_rem == NOT_A_CARD || rem == NOT_A_CARD ) + && cur_col == REM_COL ) + { + draw_cursor( CARD_WIDTH+2*MARGIN+1, MARGIN ); } rb->lcd_update(); -- cgit v1.2.3