mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Fix STRIDE macro for multiscreen and add stride support for picture lib.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22615 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f6025186fd
commit
25123570c7
28 changed files with 194 additions and 112 deletions
|
@ -213,12 +213,14 @@ static void matrix_blit_char(const int row, const int col, int cha)
|
|||
|
||||
if (matrix[row][col].bold == 1) {
|
||||
rb->lcd_bitmap_part(matrix_bold, cha*COL_W, 0,
|
||||
STRIDE(BMPWIDTH_matrix_bold, BMPHEIGHT_matrix_bold),
|
||||
STRIDE( SCREEN_MAIN,
|
||||
BMPWIDTH_matrix_bold, BMPHEIGHT_matrix_bold),
|
||||
col*COL_W + LEFTMARGIN, row*COL_H + TOPMARGIN, COL_W, COL_H);
|
||||
}
|
||||
else {
|
||||
rb->lcd_bitmap_part(matrix_normal, cha*COL_W, 0,
|
||||
STRIDE(BMPWIDTH_matrix_normal, BMPHEIGHT_matrix_normal),
|
||||
STRIDE( SCREEN_MAIN,
|
||||
BMPWIDTH_matrix_normal, BMPHEIGHT_matrix_normal),
|
||||
col*COL_W + LEFTMARGIN, row*COL_H + TOPMARGIN, COL_W, COL_H);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue