OSDN Git Service

cmfm: fix build
authorJorge Ruesga <jorge@ruesga.com>
Wed, 1 Oct 2014 20:52:53 +0000 (22:52 +0200)
committerJorge Ruesga <jorge@ruesga.com>
Wed, 1 Oct 2014 20:52:53 +0000 (22:52 +0200)
Change-Id: Ie623ea56bd9ea49a3a13e0bd95a8e52ef3b0bae4
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
src/com/cyanogenmod/filemanager/ui/policy/PrintActionPolicy.java

index 13d08cd..0f99873 100644 (file)
@@ -514,8 +514,8 @@ public final class PrintActionPolicy extends ActionsPolicy {
                 Matrix matrix = new Matrix();
 
                 // Compute and apply scale to fill the page.
-                int widthRatio = content.width() / imageWidth;
-                int heightRatio = content.height() / imageHeight;
+                float widthRatio = content.width() / imageWidth;
+                float heightRatio = content.height() / imageHeight;
                 float scale = Math.max(widthRatio, heightRatio);
                 matrix.postScale(scale, scale);