From 5fc5b5093a9f916150a50e7c28dfc7298108a115 Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Mon, 31 Aug 2009 04:21:21 +0000 Subject: Chessbox and Flipit: Add support for vertical strides. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22570 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/flipit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/plugins/flipit.c') 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; /* 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 ); -- cgit v1.2.3