summaryrefslogtreecommitdiffstats
path: root/apps/screen_access.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2012-02-28 22:26:32 +1100
committerJonathan Gordon <rockbox@jdgordon.info>2012-02-28 23:03:04 +1100
commit2c71aa9feb0268da7d993feddbbe4db591fcd3ba (patch)
tree29b3c1480abca46813ef2dc3bb8f0862b596fe34 /apps/screen_access.c
parent13f98df5ed6b8183d972f85a1bfe55cf02194941 (diff)
downloadrockbox-2c71aa9feb0268da7d993feddbbe4db591fcd3ba.tar.gz
rockbox-2c71aa9feb0268da7d993feddbbe4db591fcd3ba.tar.bz2
rockbox-2c71aa9feb0268da7d993feddbbe4db591fcd3ba.zip
lcd/skin_engine: Add the ability to draw onto the backdrop layer
The framebuffer the lcd driver uses can now be changed on the fly which means that regular lcd_* drawing functions can draw onto the "backdrop" buffer. The skin engine can use this to create layered effects. Add the tag %VB to a viewport to draw that viewport onto the backdrop layer. If you want to draw an image onto the backdrop framebuffer use %x(backdrop filename) instead of %X() inside a viewport with %VB. Change-Id: I741498e2af6d4f2d78932cabe8942317893e7cfc
Diffstat (limited to 'apps/screen_access.c')
-rw-r--r--apps/screen_access.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/screen_access.c b/apps/screen_access.c
index 5ab08b7fc5..43000e1360 100644
--- a/apps/screen_access.c
+++ b/apps/screen_access.c
@@ -262,6 +262,9 @@ struct screen screens[NB_SCREENS] =
#ifdef HAVE_BUTTONBAR
.has_buttonbar=false,
#endif
+#if defined(HAVE_LCD_BITMAP)
+ .set_framebuffer = (void*)lcd_set_framebuffer,
+#endif
},
#if NB_SCREENS == 2
{
@@ -357,6 +360,9 @@ struct screen screens[NB_SCREENS] =
#ifdef HAVE_BUTTONBAR
.has_buttonbar=false,
#endif
+#if defined(HAVE_LCD_BITMAP)
+ .set_framebuffer = (void*)lcd_remote_set_framebuffer,
+#endif
}
#endif /* NB_SCREENS == 2 */
};