diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/solitaire.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c index fe72d823b5..7acd92b775 100644 --- a/apps/plugins/solitaire.c +++ b/apps/plugins/solitaire.c | |||
@@ -344,6 +344,11 @@ static void draw_cursor( int x, int y ) | |||
344 | * if the cursor is currently over the card */ | 344 | * if the cursor is currently over the card */ |
345 | static void draw_card_ext( int x, int y, bool selected, bool cursor ) | 345 | static void draw_card_ext( int x, int y, bool selected, bool cursor ) |
346 | { | 346 | { |
347 | #if LCD_DEPTH > 1 | ||
348 | int oldfg = rb->lcd_get_foreground(); | ||
349 | |||
350 | rb->lcd_set_foreground( LCD_BLACK ); | ||
351 | #endif | ||
347 | #ifdef LARGE_CARD | 352 | #ifdef LARGE_CARD |
348 | rb->lcd_hline( x+2, x+CARD_WIDTH-3, y ); | 353 | rb->lcd_hline( x+2, x+CARD_WIDTH-3, y ); |
349 | rb->lcd_hline( x+2, x+CARD_WIDTH-3, y+CARD_HEIGHT-1 ); | 354 | rb->lcd_hline( x+2, x+CARD_WIDTH-3, y+CARD_HEIGHT-1 ); |
@@ -362,11 +367,17 @@ static void draw_card_ext( int x, int y, bool selected, bool cursor ) | |||
362 | 367 | ||
363 | if( selected ) | 368 | if( selected ) |
364 | { | 369 | { |
370 | #if LCD_DEPTH > 1 | ||
371 | rb->lcd_set_foreground( FRAME_COLOR ); | ||
372 | #endif | ||
365 | rb->lcd_drawrect( x+1, y+1, CARD_WIDTH-2, CARD_HEIGHT-2 ); | 373 | rb->lcd_drawrect( x+1, y+1, CARD_WIDTH-2, CARD_HEIGHT-2 ); |
366 | #ifdef LARGE_CARD | 374 | #ifdef LARGE_CARD |
367 | rb->lcd_drawrect( x+2, y+2, CARD_WIDTH-4, CARD_HEIGHT-4 ); | 375 | rb->lcd_drawrect( x+2, y+2, CARD_WIDTH-4, CARD_HEIGHT-4 ); |
368 | #endif | 376 | #endif |
369 | } | 377 | } |
378 | #if LCD_DEPTH > 1 | ||
379 | rb->lcd_set_foreground( oldfg ); | ||
380 | #endif | ||
370 | 381 | ||
371 | if( cursor ) | 382 | if( cursor ) |
372 | { | 383 | { |