summaryrefslogtreecommitdiff
path: root/firmware/export
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
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')
-rw-r--r--firmware/export/config-mrobe500.h8
-rw-r--r--firmware/export/config.h15
2 files changed, 21 insertions, 2 deletions
diff --git a/firmware/export/config-mrobe500.h b/firmware/export/config-mrobe500.h
index 850a2e83a1..3156b87060 100644
--- a/firmware/export/config-mrobe500.h
+++ b/firmware/export/config-mrobe500.h
@@ -49,8 +49,12 @@
49 49
50/* LCD dimensions */ 50/* LCD dimensions */
51#define CONFIG_LCD LCD_MROBE500 51#define CONFIG_LCD LCD_MROBE500
52#define SCREEN_ROTATE 52
53#if defined(SCREEN_ROTATE) 53/* choose the lcd orientation. both work */
54/* #define CONFIG_ORIENTATION SCREEN_PORTAIT */
55#define CONFIG_ORIENTATION SCREEN_LANDSCAPE
56
57#if CONFIG_ORIENTATION == SCREEN_PORTAIT
54#define LCD_WIDTH 480 58#define LCD_WIDTH 480
55#define LCD_HEIGHT 640 59#define LCD_HEIGHT 640
56#else 60#else
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