mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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
This commit is contained in:
parent
13f98df5ed
commit
2c71aa9feb
13 changed files with 87 additions and 10 deletions
|
@ -261,6 +261,9 @@ struct screen screens[NB_SCREENS] =
|
|||
#endif
|
||||
#ifdef HAVE_BUTTONBAR
|
||||
.has_buttonbar=false,
|
||||
#endif
|
||||
#if defined(HAVE_LCD_BITMAP)
|
||||
.set_framebuffer = (void*)lcd_set_framebuffer,
|
||||
#endif
|
||||
},
|
||||
#if NB_SCREENS == 2
|
||||
|
@ -356,6 +359,9 @@ struct screen screens[NB_SCREENS] =
|
|||
#endif
|
||||
#ifdef HAVE_BUTTONBAR
|
||||
.has_buttonbar=false,
|
||||
#endif
|
||||
#if defined(HAVE_LCD_BITMAP)
|
||||
.set_framebuffer = (void*)lcd_remote_set_framebuffer,
|
||||
#endif
|
||||
}
|
||||
#endif /* NB_SCREENS == 2 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue