OSDN Git Service

Fix typo
authornicolasroard <nicolasroard@google.com>
Thu, 21 Feb 2013 01:44:51 +0000 (17:44 -0800)
committernicolasroard <nicolasroard@google.com>
Thu, 21 Feb 2013 01:44:51 +0000 (17:44 -0800)
Change-Id: I6c41782a033d5ad1bb5780b22d99658223b23a0b

src/com/android/gallery3d/filtershow/imageshow/ImageShow.java

index e7e63f1..7922398 100644 (file)
@@ -343,7 +343,7 @@ public class ImageShow extends View implements OnGestureListener,
         canvas.save();
         // TODO: center scale on gesture
         float cx = canvas.getWidth()/2.0f;
-        float cy = canvas.getWidth()/2.0f;
+        float cy = canvas.getHeight()/2.0f;
         float scaleFactor = MasterImage.getImage().getScaleFactor();
         Point translation = MasterImage.getImage().getTranslation();
         canvas.scale(scaleFactor, scaleFactor, cx, cy);