forked from len0rd/rockbox
Solitaire: Repair card border and selection frame. Would it be better to make the playfield background always green again?
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11557 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f752a5aa90
commit
59320834b6
1 changed files with 11 additions and 0 deletions
|
@ -344,6 +344,11 @@ static void draw_cursor( int x, int y )
|
||||||
* if the cursor is currently over the card */
|
* if the cursor is currently over the card */
|
||||||
static void draw_card_ext( int x, int y, bool selected, bool cursor )
|
static void draw_card_ext( int x, int y, bool selected, bool cursor )
|
||||||
{
|
{
|
||||||
|
#if LCD_DEPTH > 1
|
||||||
|
int oldfg = rb->lcd_get_foreground();
|
||||||
|
|
||||||
|
rb->lcd_set_foreground( LCD_BLACK );
|
||||||
|
#endif
|
||||||
#ifdef LARGE_CARD
|
#ifdef LARGE_CARD
|
||||||
rb->lcd_hline( x+2, x+CARD_WIDTH-3, y );
|
rb->lcd_hline( x+2, x+CARD_WIDTH-3, y );
|
||||||
rb->lcd_hline( x+2, x+CARD_WIDTH-3, y+CARD_HEIGHT-1 );
|
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 )
|
||||||
|
|
||||||
if( selected )
|
if( selected )
|
||||||
{
|
{
|
||||||
|
#if LCD_DEPTH > 1
|
||||||
|
rb->lcd_set_foreground( FRAME_COLOR );
|
||||||
|
#endif
|
||||||
rb->lcd_drawrect( x+1, y+1, CARD_WIDTH-2, CARD_HEIGHT-2 );
|
rb->lcd_drawrect( x+1, y+1, CARD_WIDTH-2, CARD_HEIGHT-2 );
|
||||||
#ifdef LARGE_CARD
|
#ifdef LARGE_CARD
|
||||||
rb->lcd_drawrect( x+2, y+2, CARD_WIDTH-4, CARD_HEIGHT-4 );
|
rb->lcd_drawrect( x+2, y+2, CARD_WIDTH-4, CARD_HEIGHT-4 );
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#if LCD_DEPTH > 1
|
||||||
|
rb->lcd_set_foreground( oldfg );
|
||||||
|
#endif
|
||||||
|
|
||||||
if( cursor )
|
if( cursor )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue