forked from len0rd/rockbox
Define LCD dpi for n900, n8xx and the pandora
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29728 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5775159462
commit
e57d3b292a
1 changed files with 8 additions and 0 deletions
|
|
@ -141,7 +141,15 @@ void sdl_set_gradient(SDL_Surface *surface, SDL_Color *start, SDL_Color *end,
|
||||||
|
|
||||||
int lcd_get_dpi(void)
|
int lcd_get_dpi(void)
|
||||||
{
|
{
|
||||||
|
#if (CONFIG_PLATFORM & PLATFORM_MAEMO5)
|
||||||
|
return 267;
|
||||||
|
#elif (CONFIG_PLATFORM & PLATFORM_MAEMO4)
|
||||||
|
return 225;
|
||||||
|
#elif (CONFIG_PLATFORM & PLATFORM_PANDORA)
|
||||||
|
return 217;
|
||||||
|
#else
|
||||||
/* TODO: find a way to query it from the OS, SDL doesn't support it
|
/* TODO: find a way to query it from the OS, SDL doesn't support it
|
||||||
* directly; for now assume the more or less standard 96 */
|
* directly; for now assume the more or less standard 96 */
|
||||||
return 96;
|
return 96;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue