aboutsummaryrefslogtreecommitdiffstats
path: root/ninepatch
diff options
context:
space:
mode:
Diffstat (limited to 'ninepatch')
-rw-r--r--ninepatch/src/com/android/ninepatch/NinePatchChunk.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/ninepatch/src/com/android/ninepatch/NinePatchChunk.java b/ninepatch/src/com/android/ninepatch/NinePatchChunk.java
index 6dca61e..20abaeb 100644
--- a/ninepatch/src/com/android/ninepatch/NinePatchChunk.java
+++ b/ninepatch/src/com/android/ninepatch/NinePatchChunk.java
@@ -86,7 +86,7 @@ public class NinePatchChunk implements Serializable {
graphics2D = (Graphics2D) graphics2D.create();
// scale and transform
- float densityScale = (float) destDensity / srcDensity;
+ float densityScale = ((float) destDensity) / (float) srcDensity;
// translate/rotate the canvas.
graphics2D.translate(x, y);