forked from len0rd/rockbox
Fix STRIDE macro for multiscreen and add stride support for picture lib.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22615 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f6025186fd
commit
25123570c7
28 changed files with 194 additions and 112 deletions
|
@ -623,7 +623,8 @@ static void draw_card( card_t *card, int x, int y,
|
|||
{
|
||||
rb->lcd_bitmap_part( card_deck, CARD_GFX_WIDTH * card->num,
|
||||
CARD_GFX_HEIGHT * card->suit,
|
||||
STRIDE(BMPWIDTH_card_deck, BMPHEIGHT_card_deck),
|
||||
STRIDE(SCREEN_MAIN,
|
||||
BMPWIDTH_card_deck, BMPHEIGHT_card_deck),
|
||||
x+1, y+1, CARD_GFX_WIDTH, CARD_GFX_HEIGHT );
|
||||
}
|
||||
else
|
||||
|
@ -639,7 +640,8 @@ static void draw_empty_stack( int s, int x, int y, bool cursor )
|
|||
{
|
||||
rb->lcd_bitmap_part( solitaire_suitsi, 0,
|
||||
CARD_GFX_HEIGHT * s,
|
||||
STRIDE(BMPWIDTH_solitaire_suitsi, BMPHEIGHT_solitaire_suitsi),
|
||||
STRIDE( SCREEN_MAIN,
|
||||
BMPWIDTH_solitaire_suitsi, BMPHEIGHT_solitaire_suitsi),
|
||||
x+1, y+1, CARD_GFX_WIDTH, CARD_GFX_HEIGHT );
|
||||
|
||||
draw_card_ext( x, y, false, cursor );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue