diff options
| author | Karl Kurbjun <kkurbjun@gmail.com> | 2009-08-31 04:21:21 +0000 |
|---|---|---|
| committer | Karl Kurbjun <kkurbjun@gmail.com> | 2009-08-31 04:21:21 +0000 |
| commit | 5fc5b5093a9f916150a50e7c28dfc7298108a115 (patch) | |
| tree | 118eb9e983be6aaf77979968854104cbcf329893 /apps/plugins/flipit.c | |
| parent | 09ecdd2d2f80769ab41d140e38f935417813b102 (diff) | |
| download | rockbox-5fc5b5093a9f916150a50e7c28dfc7298108a115.zip rockbox-5fc5b5093a9f916150a50e7c28dfc7298108a115.tar.gz rockbox-5fc5b5093a9f916150a50e7c28dfc7298108a115.tar.bz2 rockbox-5fc5b5093a9f916150a50e7c28dfc7298108a115.tar.xz | |
Chessbox and Flipit: Add support for vertical strides.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22570 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/flipit.c')
| -rw-r--r-- | apps/plugins/flipit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/flipit.c b/apps/plugins/flipit.c index 1023d3a..9a79be6 100644 --- a/apps/plugins/flipit.c +++ b/apps/plugins/flipit.c @@ -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 ); |