forked from len0rd/rockbox
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
This commit is contained in:
parent
1baf5c9463
commit
cdafa3e498
6 changed files with 37 additions and 27 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue