forked from len0rd/rockbox
Chessbox and Flipit: Add support for vertical strides.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22570 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
09ecdd2d2f
commit
5fc5b5093a
2 changed files with 6 additions and 3 deletions
|
|
@ -349,7 +349,8 @@ static int cursor_pos, moves;
|
|||
/* draw a spot at the coordinates (x,y), range of p is 0-19 */
|
||||
static void draw_spot(int p)
|
||||
{
|
||||
rb->lcd_bitmap_part( flipit_tokens, 0, spots[p] * TK_HEIGHT, TK_WIDTH,
|
||||
rb->lcd_bitmap_part( flipit_tokens, 0, spots[p] * TK_HEIGHT,
|
||||
STRIDE(BMPWIDTH_flipit_tokens, BMPHEIGHT_flipit_tokens),
|
||||
GRID_LEFT + (p%5) * (TK_WIDTH+TK_SPACE),
|
||||
GRID_TOP + (p/5) * (TK_HEIGHT+TK_SPACE),
|
||||
TK_WIDTH, TK_HEIGHT );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue