From 11ad7b4bc8bcb049040c02fae04074faf5dfaf27 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Tue, 10 Feb 2009 23:43:37 +0000 Subject: Move screendump from apps to firmware, solving two nasty firmware-to-apps calls. This required to move the filename creation functions as well. * Fix bug in the BMP header of Clip screendumps. * Add remote screendump for targets with an LCD remote. * Simplify some ifdefs and rename a macro in the sim. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19967 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lib/grey_core.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'apps/plugins') diff --git a/apps/plugins/lib/grey_core.c b/apps/plugins/lib/grey_core.c index 88becb1336..18b2716d4d 100644 --- a/apps/plugins/lib/grey_core.c +++ b/apps/plugins/lib/grey_core.c @@ -718,12 +718,9 @@ void grey_deferred_lcd_update(void) #define BMP_BPP 8 #define BMP_LINESIZE ((LCD_WIDTH + 3) & ~3) #define BMP_HEADERSIZE (54 + 4 * BMP_NUMCOLORS) -#define BMP_DATASIZE (BMP_LINESIZE * LCD_HEIGHT) +#define BMP_DATASIZE (BMP_LINESIZE * (LCD_HEIGHT+LCD_SPLIT_LINES)) #define BMP_TOTALSIZE (BMP_HEADERSIZE + BMP_DATASIZE) -#define LE16_CONST(x) (x)&0xff, ((x)>>8)&0xff -#define LE32_CONST(x) (x)&0xff, ((x)>>8)&0xff, ((x)>>16)&0xff, ((x)>>24)&0xff - static const unsigned char bmpheader[] = { 0x42, 0x4d, /* 'BM' */ -- cgit v1.2.3