summaryrefslogtreecommitdiff
path: root/firmware/export/config.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-11-11 04:48:33 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-11-11 04:48:33 +0000
commit28dfb54eeb77b1c99972b3b5fa9f1d1fd97e04e4 (patch)
treeaf365e63cf329b5a04012d6c23fa7c112c39f56c /firmware/export/config.h
parent59a2862347873c2dfcc9cd47cc788dbfef27fcf8 (diff)
downloadrockbox-28dfb54eeb77b1c99972b3b5fa9f1d1fd97e04e4.tar.gz
rockbox-28dfb54eeb77b1c99972b3b5fa9f1d1fd97e04e4.zip
change the SCREEN_ROTATE define to be more meaningful, and set the mr500 orientation to landscape by default
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15567 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config.h')
-rw-r--r--firmware/export/config.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 538c75d08a..48dc3f5693 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -118,6 +118,11 @@
118#define RGB565 565 118#define RGB565 565
119#define RGB565SWAPPED 3553 119#define RGB565SWAPPED 3553
120 120
121/* CONFIG_ORIENTATION */
122#define SCREEN_PORTAIT 0
123#define SCREEN_LANDSCAPE 1
124#define SCREEN_SQUARE 2
125
121/* CONFIG_I2C */ 126/* CONFIG_I2C */
122#define I2C_PLAYREC 1 /* Archos Player/Recorder style */ 127#define I2C_PLAYREC 1 /* Archos Player/Recorder style */
123#define I2C_ONDIO 2 /* Ondio style */ 128#define I2C_ONDIO 2 /* Ondio style */
@@ -251,6 +256,16 @@
251#define CONFIG_RTC 0 256#define CONFIG_RTC 0
252#endif 257#endif
253 258
259#ifndef CONFIG_ORIENTATION
260#if LCD_HEIGHT > LCD_WIDTH
261#define CONFIG_ORIENTATION SCREEN_PORTAIT
262#elif LCD_HEIGHT < LCD_WIDTH
263#define CONFIG_ORIENTATION SCREEN_LANDSCAPE
264#else
265#define CONFIG_ORIENTATION SCREEN_SQUARE
266#endif
267#endif
268
254/* define this in the target config.h to use a different size */ 269/* define this in the target config.h to use a different size */
255#ifndef CONFIG_DEFAULT_ICON_HEIGHT 270#ifndef CONFIG_DEFAULT_ICON_HEIGHT
256#define CONFIG_DEFAULT_ICON_HEIGHT 8 271#define CONFIG_DEFAULT_ICON_HEIGHT 8