Fix:android_graphics:Fixed wrong image hot point introduced with rev4335
authorrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sat, 12 Mar 2011 21:22:42 +0000 (21:22 +0000)
committerrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sat, 12 Mar 2011 21:22:42 +0000 (21:22 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4338 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/graphics/android/graphics_android.c

index ce141f1..ebc2065 100644 (file)
@@ -234,8 +234,8 @@ image_new(struct graphics_priv *gra, struct graphics_image_methods *meth, char *
                        ret->width=(*jnienv)->CallIntMethod(jnienv, ret->Bitmap, gra->Bitmap_getWidth);
                        ret->height=(*jnienv)->CallIntMethod(jnienv, ret->Bitmap, gra->Bitmap_getHeight);
                        dbg(1,"w=%d h=%d for %s\n",ret->width,ret->height,path);
-                       ret->hot.x=*w/2;
-                       ret->hot.y=*h/2;
+                       ret->hot.x=ret->width/2;
+                       ret->hot.y=ret->height/2;
                } else {
                        g_free(ret);
                        ret=NULL;