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.tar.gz rockbox-5fc5b5093a9f916150a50e7c28dfc7298108a115.zip |
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 1023d3ac54..9a79be6acb 100644 --- a/apps/plugins/flipit.c +++ b/apps/plugins/flipit.c | |||
@@ -349,7 +349,8 @@ static int cursor_pos, moves; | |||
349 | /* draw a spot at the coordinates (x,y), range of p is 0-19 */ | 349 | /* draw a spot at the coordinates (x,y), range of p is 0-19 */ |
350 | static void draw_spot(int p) | 350 | static void draw_spot(int p) |
351 | { | 351 | { |
352 | rb->lcd_bitmap_part( flipit_tokens, 0, spots[p] * TK_HEIGHT, TK_WIDTH, | 352 | rb->lcd_bitmap_part( flipit_tokens, 0, spots[p] * TK_HEIGHT, |
353 | STRIDE(BMPWIDTH_flipit_tokens, BMPHEIGHT_flipit_tokens), | ||
353 | GRID_LEFT + (p%5) * (TK_WIDTH+TK_SPACE), | 354 | GRID_LEFT + (p%5) * (TK_WIDTH+TK_SPACE), |
354 | GRID_TOP + (p/5) * (TK_HEIGHT+TK_SPACE), | 355 | GRID_TOP + (p/5) * (TK_HEIGHT+TK_SPACE), |
355 | TK_WIDTH, TK_HEIGHT ); | 356 | TK_WIDTH, TK_HEIGHT ); |