summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2012-02-22 21:18:05 +1100
committerJonathan Gordon <rockbox@jdgordon.info>2012-02-28 11:44:59 +1100
commitb37e6bc8c119289aca8740dd5e3b60d72f9d6b40 (patch)
tree7ee9d491811c950943f0fc068d2e2b460ff05c6d /apps/plugin.c
parent15c69b8bafc3e89e1a825b5bbefef4a97f0001b1 (diff)
downloadrockbox-b37e6bc8c119289aca8740dd5e3b60d72f9d6b40.tar.gz
rockbox-b37e6bc8c119289aca8740dd5e3b60d72f9d6b40.zip
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 'apps/plugin.c')
-rw-r--r--apps/plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 36de7281d2..18bb47f64d 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -159,7 +159,7 @@ static const struct plugin_api rockbox_api = {
159 lcd_icon, 159 lcd_icon,
160 lcd_double_height, 160 lcd_double_height,
161#else 161#else
162 &lcd_framebuffer[0][0], 162 &lcd_static_framebuffer[0][0],
163 lcd_update_rect, 163 lcd_update_rect,
164 lcd_set_drawmode, 164 lcd_set_drawmode,
165 lcd_get_drawmode, 165 lcd_get_drawmode,
@@ -264,7 +264,7 @@ static const struct plugin_api rockbox_api = {
264 lcd_remote_putsxy, 264 lcd_remote_putsxy,
265 lcd_remote_puts_style, 265 lcd_remote_puts_style,
266 lcd_remote_puts_scroll_style, 266 lcd_remote_puts_scroll_style,
267 &lcd_remote_framebuffer[0][0], 267 &lcd_remote_static_framebuffer[0][0],
268 lcd_remote_update, 268 lcd_remote_update,
269 lcd_remote_update_rect, 269 lcd_remote_update_rect,
270 270