diff options
Diffstat (limited to 'apps/plugins/pegbox.c')
-rw-r--r-- | apps/plugins/pegbox.c | 7 |
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) { |