From 0a1c22128f6bca490c1b39a07ac30419f83b41ce Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 13 Sep 2002 06:37:49 +0000 Subject: Greg Haerr's font patch 3: Rotates the font bitmaps only once at font_init() time, with some source cleanup to rockbox standards. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2284 a1c6a512-1295-4272-9138-f99709370657 --- firmware/font.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/font.h') diff --git a/firmware/font.h b/firmware/font.h index 13d60e560b..8535ab216b 100644 --- a/firmware/font.h +++ b/firmware/font.h @@ -70,7 +70,7 @@ /* MWIMAGEBITS helper macros*/ #define MWIMAGE_WORDS(x) (((x)+15)/16) /* image size in words*/ -#define MWIMAGE_BYTES(x) (((x)+7)/8) /* image size in bytes*/ +#define MWIMAGE_BYTES(x) (MWIMAGE_WORDS(x)*sizeof(MWIMAGEBITS)) #define MWIMAGE_BITSPERIMAGE (sizeof(MWIMAGEBITS) * 8) #define MWIMAGE_BITVALUE(n) ((MWIMAGEBITS) (((MWIMAGEBITS) 1) << (n))) #define MWIMAGE_FIRSTBIT (MWIMAGE_BITVALUE(MWIMAGE_BITSPERIMAGE - 1)) -- cgit v1.2.3