summaryrefslogtreecommitdiff
path: root/firmware/export/config.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.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.h')
-rw-r--r--firmware/export/config.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 58ae66d1cd..2c299491f9 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -412,6 +412,28 @@
412#define LCD_PIXEL_ASPECT_WIDTH 1 412#define LCD_PIXEL_ASPECT_WIDTH 1
413#endif 413#endif
414 414
415/* Used for split displays (Sansa Clip). Set to 0 otherwise */
416#ifndef LCD_SPLIT_LINES
417#define LCD_SPLIT_LINES 0
418#endif
419
420/* Simulator LCD dimensions. Set to standard dimensions if undefined */
421#ifndef SIM_LCD_WIDTH
422#define SIM_LCD_WIDTH LCD_WIDTH
423#endif
424#ifndef SIM_LCD_HEIGHT
425#define SIM_LCD_HEIGHT (LCD_HEIGHT + LCD_SPLIT_LINES)
426#endif
427
428#ifdef HAVE_REMOTE_LCD
429#ifndef SIM_REMOTE_WIDTH
430#define SIM_REMOTE_WIDTH LCD_REMOTE_WIDTH
431#endif
432#ifndef SIM_REMOTE_HEIGHT
433#define SIM_REMOTE_HEIGHT LCD_REMOTE_HEIGHT
434#endif
435#endif /* HAVE_REMOTE_LCD */
436
415/* define this in the target config.h to use a different size */ 437/* define this in the target config.h to use a different size */
416#ifndef CONFIG_DEFAULT_ICON_HEIGHT 438#ifndef CONFIG_DEFAULT_ICON_HEIGHT
417#define CONFIG_DEFAULT_ICON_HEIGHT 8 439#define CONFIG_DEFAULT_ICON_HEIGHT 8