summaryrefslogtreecommitdiff
path: root/firmware/export/config-clip.h
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2009-02-09 00:32:59 +0000
committerJens Arnold <amiconn@rockbox.org>2009-02-09 00:32:59 +0000
commit0d935ce75e1408dfd9832ae7dbb7d84df50a645d (patch)
tree9ddcc5d21dcd0e576d0fa824e74c58755fa9d1a0 /firmware/export/config-clip.h
parent94537f954e67d44fdd9703c062c4ee53599e0e74 (diff)
downloadrockbox-0d935ce75e1408dfd9832ae7dbb7d84df50a645d.tar.gz
rockbox-0d935ce75e1408dfd9832ae7dbb7d84df50a645d.zip
Put the display colours for monochrome and greyscale targets into the target config files, and use them both for the simulator UI and screendumps. The Clip now shows the split display properly in screendumps and simulator. A side effect is that screendumps of ordinary monochrome targets are now 4-bit BMP files (saves an alternate code path, and might be more compatible with some gfx programs). * Simplify the simulation of split display, and also simplify greylib simulation. The simulator now always calculates 129 shades (2*128 for a Clip sim), and just uses 2 (or 4) of those for native display simulation. * Centralised the simulator LCD dimension definition.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19950 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config-clip.h')
-rw-r--r--firmware/export/config-clip.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/firmware/export/config-clip.h b/firmware/export/config-clip.h
index da8acf2fdf..95ed715276 100644
--- a/firmware/export/config-clip.h
+++ b/firmware/export/config-clip.h
@@ -45,7 +45,24 @@
45#define LCD_WIDTH 128 45#define LCD_WIDTH 128
46#define LCD_HEIGHT 64 46#define LCD_HEIGHT 64
47#define LCD_DEPTH 1 47#define LCD_DEPTH 1
48
48#define LCD_PIXELFORMAT VERTICAL_PACKING 49#define LCD_PIXELFORMAT VERTICAL_PACKING
50#define HAVE_NEGATIVE_LCD /* bright on dark */
51#define HAVE_LCD_SPLIT /* split display */
52
53/* Display colours, for screenshots and sim (0xRRGGBB) */
54#define LCD_DARKCOLOR 0x000000
55#define LCD_BRIGHTCOLOR 0x000000
56#define LCD_BL_DARKCOLOR 0x000000
57#define LCD_BL_BRIGHTCOLOR 0x0de2e5
58
59#define LCD_DARKCOLOR_2 0x000000
60#define LCD_BRIGHTCOLOR_2 0x000000
61#define LCD_BL_DARKCOLOR_2 0x000000
62#define LCD_BL_BRIGHTCOLOR_2 0xffe60f
63
64#define LCD_SPLIT_POS 16
65#define LCD_SPLIT_LINES 2
49 66
50/* define this if you have LCD enable function */ 67/* define this if you have LCD enable function */
51#define HAVE_LCD_ENABLE 68#define HAVE_LCD_ENABLE