diff options
author | Thomas Jarosch <tomj@simonv.com> | 2011-04-16 20:27:52 +0000 |
---|---|---|
committer | Thomas Jarosch <tomj@simonv.com> | 2011-04-16 20:27:52 +0000 |
commit | e57d3b292a8e2a399160878154c6bea0d0ba2cff (patch) | |
tree | cb498e2eb0d2ac36b43bae9864bd2e7fc650ae88 | |
parent | 577515946231acf413b9f1ec2dc5e889b2e66c65 (diff) | |
download | rockbox-e57d3b292a8e2a399160878154c6bea0d0ba2cff.tar.gz rockbox-e57d3b292a8e2a399160878154c6bea0d0ba2cff.zip |
Define LCD dpi for n900, n8xx and the pandora
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29728 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/hosted/sdl/lcd-sdl.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/target/hosted/sdl/lcd-sdl.c b/firmware/target/hosted/sdl/lcd-sdl.c index 1b28d8b6db..57026eedfe 100644 --- a/firmware/target/hosted/sdl/lcd-sdl.c +++ b/firmware/target/hosted/sdl/lcd-sdl.c | |||
@@ -141,7 +141,15 @@ void sdl_set_gradient(SDL_Surface *surface, SDL_Color *start, SDL_Color *end, | |||
141 | 141 | ||
142 | int lcd_get_dpi(void) | 142 | int lcd_get_dpi(void) |
143 | { | 143 | { |
144 | #if (CONFIG_PLATFORM & PLATFORM_MAEMO5) | ||
145 | return 267; | ||
146 | #elif (CONFIG_PLATFORM & PLATFORM_MAEMO4) | ||
147 | return 225; | ||
148 | #elif (CONFIG_PLATFORM & PLATFORM_PANDORA) | ||
149 | return 217; | ||
150 | #else | ||
144 | /* TODO: find a way to query it from the OS, SDL doesn't support it | 151 | /* TODO: find a way to query it from the OS, SDL doesn't support it |
145 | * directly; for now assume the more or less standard 96 */ | 152 | * directly; for now assume the more or less standard 96 */ |
146 | return 96; | 153 | return 96; |
154 | #endif | ||
147 | } | 155 | } |