From cdafa3e49825c7eec278000fc097cd5e047249ec Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Mon, 31 Aug 2009 13:56:48 +0000 Subject: 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 --- apps/plugins/pegbox.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'apps/plugins/pegbox.c') 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) 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) { -- cgit v1.2.3