Fix:graphics/opengl:added support for image rotation
authortegzed <tegzed@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 15 Feb 2011 19:26:38 +0000 (19:26 +0000)
committertegzed <tegzed@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 15 Feb 2011 19:26:38 +0000 (19:26 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4173 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/graphics/opengl/graphics_opengl.c

index 8bd0669..230713a 100644 (file)
@@ -347,6 +347,12 @@ image_new (struct graphics_priv *gr, struct graphics_image_methods *meth,
         image = image2;
     }
 
+    if(rotation) {
+      FIBITMAP *image2; 
+      image2 = FreeImage_Rotate(image, rotation, NULL);
+      image = image2;
+    }
+
   gi = g_new0 (struct graphics_image_priv, 1);
 
   width = FreeImage_GetWidth (image);