summaryrefslogtreecommitdiff
path: root/apps/recorder/backdrop.c
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-04-25 13:09:56 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-04-25 13:09:56 +0000
commit2a2b8d8a8234633779dca0fff5e7ce23ad4c48ed (patch)
treee6ffe49977691b83484dc66e67eac51e50ff85d3 /apps/recorder/backdrop.c
parent70e2846241a8ab9dd6aa570762086c3111ac0463 (diff)
downloadrockbox-2a2b8d8a8234633779dca0fff5e7ce23ad4c48ed.tar.gz
rockbox-2a2b8d8a8234633779dca0fff5e7ce23ad4c48ed.zip
Make bitmaps use the right format in a RWPS and prevent a backdrop tag in a RWPS from clearing the main display's backdrop. This also allows future backdrop support for LCD remotes by making the parsing code aware of whether the display for a WPS is a remote or not.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13261 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/backdrop.c')
-rw-r--r--apps/recorder/backdrop.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/recorder/backdrop.c b/apps/recorder/backdrop.c
index cb6aaa5a32..e31543549d 100644
--- a/apps/recorder/backdrop.c
+++ b/apps/recorder/backdrop.c
@@ -26,13 +26,8 @@
26static fb_data main_backdrop[LCD_HEIGHT][LCD_WIDTH] __attribute__ ((aligned (16))); 26static fb_data main_backdrop[LCD_HEIGHT][LCD_WIDTH] __attribute__ ((aligned (16)));
27static fb_data wps_backdrop[LCD_HEIGHT][LCD_WIDTH] __attribute__ ((aligned (16))); 27static fb_data wps_backdrop[LCD_HEIGHT][LCD_WIDTH] __attribute__ ((aligned (16)));
28#elif LCD_DEPTH == 2 28#elif LCD_DEPTH == 2
29#if LCD_PIXELFORMAT == VERTICAL_PACKING 29static fb_data main_backdrop[LCD_FBHEIGHT][LCD_FBWIDTH];
30static fb_data main_backdrop[(LCD_HEIGHT+3)/4][LCD_WIDTH]; 30static fb_data wps_backdrop[LCD_FBHEIGHT][LCD_FBWIDTH];
31static fb_data wps_backdrop[(LCD_HEIGHT+3)/4][LCD_WIDTH];
32#else
33static fb_data main_backdrop[LCD_HEIGHT][LCD_FBWIDTH];
34static fb_data wps_backdrop[LCD_HEIGHT][LCD_FBWIDTH];
35#endif
36#endif 31#endif
37 32
38static bool main_backdrop_valid = false; 33static bool main_backdrop_valid = false;