summaryrefslogtreecommitdiff
path: root/apps/plugins/chessbox/chessbox.c
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-08-31 04:21:21 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-08-31 04:21:21 +0000
commit5fc5b5093a9f916150a50e7c28dfc7298108a115 (patch)
tree118eb9e983be6aaf77979968854104cbcf329893 /apps/plugins/chessbox/chessbox.c
parent09ecdd2d2f80769ab41d140e38f935417813b102 (diff)
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/chessbox/chessbox.c')
-rw-r--r--apps/plugins/chessbox/chessbox.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/chessbox/chessbox.c b/apps/plugins/chessbox/chessbox.c
index c1e6092f3a..0369eda174 100644
--- a/apps/plugins/chessbox/chessbox.c
+++ b/apps/plugins/chessbox/chessbox.c
@@ -134,7 +134,8 @@ static void cb_drawboard (void) {
if ( piece == no_piece ) {
rb->lcd_bitmap_part ( chessbox_pieces , 0 ,
TILE_HEIGHT * b_color ,
- TILE_WIDTH ,
+ STRIDE( BMPWIDTH_chessbox_pieces,
+ BMPHEIGHT_chessbox_pieces) ,
XOFS + x*TILE_WIDTH ,
YOFS + ( 7 - y )*TILE_HEIGHT ,
TILE_WIDTH ,
@@ -146,7 +147,8 @@ static void cb_drawboard (void) {
4 * TILE_HEIGHT * ( piece - 1 ) +
2 * TILE_HEIGHT * p_color +
TILE_HEIGHT * b_color ,
- TILE_WIDTH ,
+ STRIDE( BMPWIDTH_chessbox_pieces,
+ BMPHEIGHT_chessbox_pieces) ,
XOFS + x*TILE_WIDTH ,
YOFS + (7 - y)*TILE_HEIGHT ,
TILE_WIDTH ,