summaryrefslogtreecommitdiff
path: root/apps/plugins/matrix.c
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-09-01 03:40:23 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-09-01 03:40:23 +0000
commit33a4cafda3ea423dd5fef0ab4959b181dfd7912d (patch)
tree05d4bb4c18b54688af6ef92e890207a3aeeaf591 /apps/plugins/matrix.c
parent57f44a90c7abdafb59fcacbcae39f6277d280cf5 (diff)
Matrix: Add support for vertical strides
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22586 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/matrix.c')
-rw-r--r--apps/plugins/matrix.c10
1 files changed, 6 insertions, 4 deletions
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);
}
}