From 8ac280b1cfd498f2d62cea824b685d586b4821af Mon Sep 17 00:00:00 2001 From: norad Date: Fri, 11 Feb 2011 17:58:16 +0000 Subject: [PATCH] Patch:graphics/sdl:Output chosen screen resolution, it's kind of dynamic on WebOS git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4132 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit/graphics/sdl/graphics_sdl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/navit/navit/graphics/sdl/graphics_sdl.c b/navit/navit/graphics/sdl/graphics_sdl.c index af0ecfa..4ac654e 100644 --- a/navit/navit/graphics/sdl/graphics_sdl.c +++ b/navit/navit/graphics/sdl/graphics_sdl.c @@ -2135,6 +2135,10 @@ graphics_sdl_new(struct navit *nav, struct graphics_methods *meth, struct attr * /* Use screen size instead of requested */ w = this->screen->w; h = this->screen->h; + + dbg(0, "using screen %ix%i@%i\n", + this->screen->w, this->screen->h, + this->screen->format->BytesPerPixel * 8); #ifdef USE_WEBOS_ACCELEROMETER this->real_w = w; this->real_h = h; -- 2.7.4