summaryrefslogtreecommitdiff
path: root/apps/plugins/pegbox.c
diff options
context:
space:
mode:
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 d9c3d98..981d2d4 100644
--- a/apps/plugins/pegbox.c
+++ b/apps/plugins/pegbox.c
@@ -745,9 +745,10 @@ static void pegbox_draw_board(struct game_context* pb)
if(type != SPACE) {
rb->lcd_bitmap_part(pegbox_pieces, 0, (type-1)*PIECE_HEIGHT,
- PIECE_WIDTH, c * PIECE_WIDTH + BOARD_X,
- r * PIECE_HEIGHT + BOARD_Y, PIECE_WIDTH,
- PIECE_HEIGHT);
+ STRIDE(BMPWIDTH_pegbox_pieces,BMPHEIGHT_pegbox_pieces),
+ c * PIECE_WIDTH + BOARD_X,
+ r * PIECE_HEIGHT + BOARD_Y, PIECE_WIDTH,
+ PIECE_HEIGHT);
}
if(pb->playboard[r][c] == PLAYER) {