Fix:android:Made compileable again
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sun, 17 Jun 2012 14:58:33 +0000 (14:58 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sun, 17 Jun 2012 14:58:33 +0000 (14:58 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@5149 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/android/src/org/navitproject/navit/NavitGraphics.java

index 9102c88..aed9fa0 100644 (file)
@@ -878,13 +878,13 @@ public class NavitGraphics
                        if (parent_graphics != null) {
                                int x = pos_x;
                                int y = pos_y;
-                               int width = bitmap_width;
-                               int height = bitmap_height;
-                               if (pos_wraparound != 0 && x < 0) x += parent_graphics.bitmap_width;
-                               if (pos_wraparound != 0 && y < 0) y += parent_graphics.bitmap_height;
-                               if (pos_wraparound != 0 && width < 0) width += parent_graphics.bitmap_width;
-                               if (pos_wraparound != 0 && height < 0) height += parent_graphics.bitmap_height;
-                               draw_canvas.invalidate(x,y,x+w,y+h);
+                               int width = bitmap_w;
+                               int height = bitmap_h;
+                               if (pos_wraparound != 0 && x < 0) x += parent_graphics.bitmap_w;
+                               if (pos_wraparound != 0 && y < 0) y += parent_graphics.bitmap_h;
+                               if (pos_wraparound != 0 && width < 0) width += parent_graphics.bitmap_w;
+                               if (pos_wraparound != 0 && height < 0) height += parent_graphics.bitmap_h;
+                               view.invalidate(x,y,x+width,y+height);
                        }
                }
        }