FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

remove unnecessary cast · xeaser/processing@ca1290f · GitHub

Repository navigation

Commit ca1290f

Browse files
committed
remove unnecessary cast
1 parent 1a08714 commit ca1290f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎java/libraries/pdf/src/processing/pdf/PGraphicsPDF.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ protected void imageImpl(PImage image,
408408
translate(x1, y1);
409409
int imageWidth = image.width;
410410
int imageHeight = image.height;
411-
scale((x2 - x1) / (float)imageWidth,
412-
(y2 - y1) / (float)imageHeight);
411+
scale((x2 - x1) / imageWidth,
412+
(y2 - y1) / imageHeight);
413413
if (u2-u1 == imageWidth && v2-v1 == imageHeight) {
414414
g2.drawImage((Image) image.getNative(), 0, 0, null);
415415
} else {

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL