diff options
Diffstat (limited to 'firmware/target/hosted/sdl/lcd-sdl.c')
-rw-r--r-- | firmware/target/hosted/sdl/lcd-sdl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/hosted/sdl/lcd-sdl.c b/firmware/target/hosted/sdl/lcd-sdl.c index 15e4ba95c3..96b1a04aa6 100644 --- a/firmware/target/hosted/sdl/lcd-sdl.c +++ b/firmware/target/hosted/sdl/lcd-sdl.c | |||
@@ -111,3 +111,9 @@ void sdl_set_gradient(SDL_Surface *surface, SDL_Color *start, SDL_Color *end, | |||
111 | SDL_SetPalette(surface, SDL_LOGPAL|SDL_PHYSPAL, palette, first, steps); | 111 | SDL_SetPalette(surface, SDL_LOGPAL|SDL_PHYSPAL, palette, first, steps); |
112 | } | 112 | } |
113 | 113 | ||
114 | int lcd_get_dpi(void) | ||
115 | { | ||
116 | /* TODO: find a way to query it from the OS, SDL doesn't support it | ||
117 | * directly; for now assume the more or less standard 96 */ | ||
118 | return 96; | ||
119 | } | ||