summaryrefslogtreecommitdiff
path: root/apps/plugins/pegbox.c
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-08-31 13:56:48 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-08-31 13:56:48 +0000
commitcdafa3e49825c7eec278000fc097cd5e047249ec (patch)
tree3bf1212cad6a3a3c67c241e795e8cc09d05e8b12 /apps/plugins/pegbox.c
parent1baf5c946329d9d6ba69d27277cc59a4d6e29e16 (diff)
downloadrockbox-cdafa3e49825c7eec278000fc097cd5e047249ec.tar.gz
rockbox-cdafa3e49825c7eec278000fc097cd5e047249ec.zip
pegbox, sliding_puzzle, sokoban, solitaire, sudoku, and superdom: Add support for vertical strides
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22573 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pegbox.c')
-rw-r--r--apps/plugins/pegbox.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/plugins/pegbox.c b/apps/plugins/pegbox.c
index d9c3d9870e..981d2d4fc6 100644
--- a/apps/plugins/pegbox.c
+++ b/apps/plugins/pegbox.c
@@ -745,9 +745,10 @@ static void pegbox_draw_board(struct game_context* pb)
745 745
746 if(type != SPACE) { 746 if(type != SPACE) {
747 rb->lcd_bitmap_part(pegbox_pieces, 0, (type-1)*PIECE_HEIGHT, 747 rb->lcd_bitmap_part(pegbox_pieces, 0, (type-1)*PIECE_HEIGHT,
748 PIECE_WIDTH, c * PIECE_WIDTH + BOARD_X, 748 STRIDE(BMPWIDTH_pegbox_pieces,BMPHEIGHT_pegbox_pieces),
749 r * PIECE_HEIGHT + BOARD_Y, PIECE_WIDTH, 749 c * PIECE_WIDTH + BOARD_X,
750 PIECE_HEIGHT); 750 r * PIECE_HEIGHT + BOARD_Y, PIECE_WIDTH,
751 PIECE_HEIGHT);
751 } 752 }
752 753
753 if(pb->playboard[r][c] == PLAYER) { 754 if(pb->playboard[r][c] == PLAYER) {