diff options
| author | Karl Kurbjun <kkurbjun@gmail.com> | 2009-08-31 13:56:48 +0000 |
|---|---|---|
| committer | Karl Kurbjun <kkurbjun@gmail.com> | 2009-08-31 13:56:48 +0000 |
| commit | cdafa3e49825c7eec278000fc097cd5e047249ec (patch) | |
| tree | 3bf1212cad6a3a3c67c241e795e8cc09d05e8b12 /apps/plugins/pegbox.c | |
| parent | 1baf5c946329d9d6ba69d27277cc59a4d6e29e16 (diff) | |
| download | rockbox-cdafa3e49825c7eec278000fc097cd5e047249ec.zip rockbox-cdafa3e49825c7eec278000fc097cd5e047249ec.tar.gz rockbox-cdafa3e49825c7eec278000fc097cd5e047249ec.tar.bz2 rockbox-cdafa3e49825c7eec278000fc097cd5e047249ec.tar.xz | |
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.c | 7 |
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) { |