From 25123570c76f2055d3ae05d79741038c0e23c536 Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Fri, 4 Sep 2009 00:46:24 +0000 Subject: 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 --- apps/plugins/matrix.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/plugins/matrix.c') diff --git a/apps/plugins/matrix.c b/apps/plugins/matrix.c index 0d75986bb6..e6e0fa1175 100644 --- a/apps/plugins/matrix.c +++ b/apps/plugins/matrix.c @@ -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); } } -- cgit v1.2.3