summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-09-27 15:42:55 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-09-27 15:42:55 +0000
commitf3b015f73b29f2d3514c32a9b8b8f0338b52e358 (patch)
tree65e1694745947a9a7d673811d12155f3b2a03019 /firmware/export
parent5353473b723749a7cd92d72e94423b74058287dc (diff)
downloadrockbox-f3b015f73b29f2d3514c32a9b8b8f0338b52e358.tar.gz
rockbox-f3b015f73b29f2d3514c32a9b8b8f0338b52e358.zip
FS#7808 by Tom Ross, Ken Fazzone and me, with help from Antoine Cellerier.
Add two new line selector types: solid colour and gradient. Solid colour only uses the primary colour setting. The secondary colour setting is used for the gradient. Text colour for the selected item is also changeable. These new settings are a bit controversial so they may be removed later. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14868 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/lcd.h8
-rw-r--r--firmware/export/scroll_engine.h6
2 files changed, 13 insertions, 1 deletions
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index ac0aea8664..2ea9906a2a 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -27,6 +27,8 @@
27#define STYLE_DEFAULT 0x00000000 27#define STYLE_DEFAULT 0x00000000
28#define STYLE_INVERT 0x20000000 28#define STYLE_INVERT 0x20000000
29#define STYLE_COLORED 0x10000000 29#define STYLE_COLORED 0x10000000
30#define STYLE_COLORBAR 0x40000000
31#define STYLE_GRADIENT 0x80000000
30#define STYLE_COLOR_MASK 0x0000FFFF 32#define STYLE_COLOR_MASK 0x0000FFFF
31 33
32#ifdef SIMULATOR 34#ifdef SIMULATOR
@@ -233,6 +235,7 @@ static inline unsigned lcd_color_to_native(unsigned color)
233#define LCD_WHITE LCD_RGBPACK(255, 255, 255) 235#define LCD_WHITE LCD_RGBPACK(255, 255, 255)
234#define LCD_DEFAULT_FG LCD_BLACK 236#define LCD_DEFAULT_FG LCD_BLACK
235#define LCD_DEFAULT_BG LCD_RGBPACK(182, 198, 229) /* rockbox blue */ 237#define LCD_DEFAULT_BG LCD_RGBPACK(182, 198, 229) /* rockbox blue */
238#define LCD_DEFAULT_LS LCD_WHITE
236 239
237#elif LCD_DEPTH > 1 /* greyscale */ 240#elif LCD_DEPTH > 1 /* greyscale */
238 241
@@ -355,6 +358,11 @@ extern void lcd_set_foreground(unsigned foreground);
355extern unsigned lcd_get_foreground(void); 358extern unsigned lcd_get_foreground(void);
356extern void lcd_set_background(unsigned background); 359extern void lcd_set_background(unsigned background);
357extern unsigned lcd_get_background(void); 360extern unsigned lcd_get_background(void);
361#ifdef HAVE_LCD_COLOR
362extern void lcd_set_selector_start(unsigned selector);
363extern void lcd_set_selector_end(unsigned selector);
364extern void lcd_set_selector_text(unsigned selector_text);
365#endif
358extern void lcd_set_drawinfo(int mode, unsigned foreground, 366extern void lcd_set_drawinfo(int mode, unsigned foreground,
359 unsigned background); 367 unsigned background);
360void lcd_set_backdrop(fb_data* backdrop); 368void lcd_set_backdrop(fb_data* backdrop);
diff --git a/firmware/export/scroll_engine.h b/firmware/export/scroll_engine.h
index aa11a9ba1f..f40a00f96c 100644
--- a/firmware/export/scroll_engine.h
+++ b/firmware/export/scroll_engine.h
@@ -43,8 +43,12 @@ struct scrollinfo
43 int startx; 43 int startx;
44#ifdef HAVE_LCD_BITMAP 44#ifdef HAVE_LCD_BITMAP
45 int width; /* length of line in pixels */ 45 int width; /* length of line in pixels */
46 bool invert; /* invert the scrolled text */ 46#ifdef HAVE_LCD_COLOR
47 int invert; /* invert the scrolled text */
48#else
49 bool invert;
47#endif 50#endif
51#endif/* HAVE_LCD_BITMAP */
48 bool backward; /* scroll presently forward or backward? */ 52 bool backward; /* scroll presently forward or backward? */
49 bool bidir; 53 bool bidir;
50 long start_tick; 54 long start_tick;