remove unnecessary cast

This commit is contained in:
Ben Fry
2014-01-21 18:19:53 -05:00
parent 69a3beaede
commit 9ca4000356

View File

@@ -408,8 +408,8 @@ public class PGraphicsPDF extends PGraphicsJava2D {
translate(x1, y1);
int imageWidth = image.width;
int imageHeight = image.height;
scale((x2 - x1) / (float)imageWidth,
(y2 - y1) / (float)imageHeight);
scale((x2 - x1) / imageWidth,
(y2 - y1) / imageHeight);
if (u2-u1 == imageWidth && v2-v1 == imageHeight) {
g2.drawImage((Image) image.getNative(), 0, 0, null);
} else {