summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-08-09 05:30:16 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-08-09 05:30:16 +0000
commit7aaa544f09ae2f2cf0cd64cbd3f72c0714a94eba (patch)
treeca0c120570178da0fe8d60bc9b4d8b822c04b93c /firmware
parent463d0664c8800a16189d4fd6d09fa465ae62a517 (diff)
downloadrockbox-7aaa544f09ae2f2cf0cd64cbd3f72c0714a94eba.tar.gz
rockbox-7aaa544f09ae2f2cf0cd64cbd3f72c0714a94eba.tar.bz2
rockbox-7aaa544f09ae2f2cf0cd64cbd3f72c0714a94eba.zip
Fix ZVM
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22218 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/tms320dm320/system-dm320.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/arm/tms320dm320/system-dm320.c b/firmware/target/arm/tms320dm320/system-dm320.c
index 461028a349..910662505b 100644
--- a/firmware/target/arm/tms320dm320/system-dm320.c
+++ b/firmware/target/arm/tms320dm320/system-dm320.c
@@ -273,6 +273,11 @@ void system_init(void)
dma_init();
#endif
+#if !defined(LCD_NATIVE_WIDTH) && !defined(LCD_NATIVE_HEIGHT)
+#define LCD_NATIVE_WIDTH LCD_WIDTH
+#define LCD_NATIVE_HEIGHT LCD_HEIGHT
+#endif
+
#define LCD_FUDGE LCD_NATIVE_WIDTH%32
#define LCD_BUFFER_SIZE ((LCD_NATIVE_WIDTH+LCD_FUDGE)*LCD_NATIVE_HEIGHT*2)
#define LCD_TTB_AREA ((LCD_BUFFER_SIZE>>19)+1)