Rockbox mail archiveSubject: multiple lcd framebuffers in rockbox
multiple lcd framebuffers in rockbox
From: Jonathan Gordon <jdgordy_at_gmail.com>
Date: Tue, 22 Nov 2011 22:22:16 +1100
I had an idea which I mentioned in IRC which would allow the skin
engine (or anything) to draw (using the existing lcd api) into a
different lcd framebuffer which could then be used as the backdrop
image for text/whatever which is finally drawn to the LCD.
The problem is though that every lcd driver currently uses a static
array as the lcd_framebuffer instead of a nice pointer which can be
http://www.rockbox.org/tracker/task/11615 started working on changing
this to allow dynamic screen sizes (for RaaA) and attached is a
stripped down copy of that which changes sdl,android and the ipod
video drivers to use a pointer (which currently just points to the
array anyway) as a proof-of-concept/base.
That patch only changes lcd_framebuffer for targets with
HAVE_DYNAMIC_LCD_SIZE but for my plan to work I need all drivers to
change. That patch will then be able to build on this quite easily.
Now, is this something which people would object to?
P.S Being able to use different images for viewport backdrops has been
requests quite a few times, and now we can draw images semi
transparent I think having the AA image as a backdrop would look sweet
(or at least be interesting!)