From ecdadcbaed5bddbd3693af5fc7bc8f2dccd8c3ff Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sun, 26 Feb 2006 18:17:47 +0000 Subject: Significantly reduce memory waste by reducing the wps image buffer. The new size still allows to cover the whole screen once with native bitmaps, plus twice with mono bitmaps, not counting the backdrop. Regains ~33KB on archos and ~220KB on H300. It's still a waste on dual-LCD targets because the two buffers are equal in size, despite one LCD being of much lower resolution + colour depth. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8849 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/gui/gwps.h') diff --git a/apps/gui/gwps.h b/apps/gui/gwps.h index 3277037bfa..5c3b72603c 100644 --- a/apps/gui/gwps.h +++ b/apps/gui/gwps.h @@ -301,7 +301,8 @@ struct align_pos { #ifdef HAVE_LCD_BITMAP #define MAX_IMAGES (26*2) /* a-z and A-Z */ -#define IMG_BUFSIZE (LCD_HEIGHT * LCD_WIDTH * MAX_IMAGES/10) +#define IMG_BUFSIZE ((LCD_HEIGHT*LCD_WIDTH*LCD_DEPTH/8) \ + + (2*LCD_HEIGHT*LCD_WIDTH/8)) #define WPS_MAX_LINES (LCD_HEIGHT/5+1) #define FORMAT_BUFFER_SIZE 3072 #else -- cgit v1.2.3