diff options
author | Dave Chapman <dave@dchapman.com> | 2007-05-15 16:00:06 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2007-05-15 16:00:06 +0000 |
commit | 0030378f74918f2d4f92517a2b36c7a0b473cbb9 (patch) | |
tree | 62cf911dc0b6ec60551fcb328d92055f4225f3e2 /firmware/drivers/lcd-16bit.c | |
parent | e22b33ec72abbcc71df30a38328311dd68a178c7 (diff) |
More gigabeat LCD cleanup and completely remove the use of DMA for lcd_update_rect() (this was accidentally disabled anyway by the previous commit). The DMA version of lcd_update_rect() managed 64fps, but the memcpy based implementation manages 264fps.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13393 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/lcd-16bit.c')
-rw-r--r-- | firmware/drivers/lcd-16bit.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/firmware/drivers/lcd-16bit.c b/firmware/drivers/lcd-16bit.c index 0a3d193cad..44e42ad617 100644 --- a/firmware/drivers/lcd-16bit.c +++ b/firmware/drivers/lcd-16bit.c @@ -33,11 +33,6 @@ #include "font.h" #include "rbunicode.h" #include "bidi.h" -#if defined(TOSHIBA_GIGABEAT_F) -#define NON_GB_STATIC -#else -#define NON_GB_STATIC static -#endif #define SCROLLABLE_LINES ((LCD_HEIGHT+4)/5 < 32 ? (LCD_HEIGHT+4)/5 : 32) @@ -54,8 +49,8 @@ fb_data lcd_framebuffer[LCD_FBHEIGHT][LCD_FBWIDTH] IRAM_LCDFRAMEBUFFER __attribu static fb_data* lcd_backdrop = NULL; static long lcd_backdrop_offset IDATA_ATTR = 0; -NON_GB_STATIC unsigned fg_pattern IDATA_ATTR = LCD_DEFAULT_FG; -NON_GB_STATIC unsigned bg_pattern IDATA_ATTR = LCD_DEFAULT_BG; +static unsigned fg_pattern IDATA_ATTR = LCD_DEFAULT_FG; +static unsigned bg_pattern IDATA_ATTR = LCD_DEFAULT_BG; static int drawmode = DRMODE_SOLID; static int xmargin = 0; static int ymargin = 0; |