From 33a4cafda3ea423dd5fef0ab4959b181dfd7912d Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Tue, 1 Sep 2009 03:40:23 +0000 Subject: Matrix: Add support for vertical strides git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22586 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/matrix.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'apps/plugins/matrix.c') diff --git a/apps/plugins/matrix.c b/apps/plugins/matrix.c index 5b0a371fe8..0d75986bb6 100644 --- a/apps/plugins/matrix.c +++ b/apps/plugins/matrix.c @@ -37,9 +37,9 @@ PLUGIN_HEADER /* Images */ +#include "pluginbitmaps/matrix_bold.h" +#include "pluginbitmaps/matrix_normal.h" #define MAXCHARS 27 - 1 -extern const fb_data matrix_bold[]; -extern const fb_data matrix_normal[]; #define COL_W 14 #define COL_H 15 @@ -212,11 +212,13 @@ static void matrix_blit_char(const int row, const int col, int cha) cha = 0; if (matrix[row][col].bold == 1) { - rb->lcd_bitmap_part(matrix_bold, cha*COL_W, 0, 392, + rb->lcd_bitmap_part(matrix_bold, cha*COL_W, 0, + STRIDE(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, 392, + rb->lcd_bitmap_part(matrix_normal, cha*COL_W, 0, + STRIDE(BMPWIDTH_matrix_normal, BMPHEIGHT_matrix_normal), col*COL_W + LEFTMARGIN, row*COL_H + TOPMARGIN, COL_W, COL_H); } } -- cgit v1.2.3