Patch:graphics/sdl:Output chosen screen resolution, it's kind of dynamic on WebOS
authornorad <norad@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 11 Feb 2011 17:58:16 +0000 (17:58 +0000)
committernorad <norad@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 11 Feb 2011 17:58:16 +0000 (17:58 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4132 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/graphics/sdl/graphics_sdl.c

index af0ecfa..4ac654e 100644 (file)
@@ -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;