diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2012-02-22 21:18:05 +1100 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2012-02-28 11:44:59 +1100 |
commit | b37e6bc8c119289aca8740dd5e3b60d72f9d6b40 (patch) | |
tree | 7ee9d491811c950943f0fc068d2e2b460ff05c6d /firmware/target/arm/sandisk | |
parent | 15c69b8bafc3e89e1a825b5bbefef4a97f0001b1 (diff) |
lcd drivers: Convert lcd_[remote_]framebuffer to a pointer
Change all lcd drivers to using a pointer to the static framebuffer
instead of directly accessing the static array. This will let us
later do fun things like dynamic framebuffer sizes (RaaA) or
ability to use different buffers for different layers (dynamic
skin backdrops!)
Change-Id: I0a4d58a9d7b55e6c932131b929e5d4c9f9414b06
Diffstat (limited to 'firmware/target/arm/sandisk')
-rw-r--r-- | firmware/target/arm/sandisk/sansa-view/lcd-view.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/sandisk/sansa-view/lcd-view.c b/firmware/target/arm/sandisk/sansa-view/lcd-view.c index 99c972704d..cc67e838f9 100644 --- a/firmware/target/arm/sandisk/sansa-view/lcd-view.c +++ b/firmware/target/arm/sandisk/sansa-view/lcd-view.c @@ -363,7 +363,7 @@ void lcd_update(void) { const fb_data *addr; - addr = &lcd_framebuffer[LCD_HEIGHT][LCD_WIDTH]; + addr = FBADDR(LCD_WIDTH,LCD_HEIGHT); lcd_write_reg(0x20, 0x0); lcd_write_reg(0x21, 0x0); |