mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
deal with deprecation changes in PDF
This commit is contained in:
@@ -177,7 +177,7 @@ public class PGraphicsPDF extends PGraphicsJava2D {
|
||||
// long t = System.currentTimeMillis();
|
||||
mapper = new DefaultFontMapper();
|
||||
|
||||
if (PApplet.platform == PConstants.MACOSX) {
|
||||
if (PApplet.platform == PConstants.MACOS) {
|
||||
try {
|
||||
String homeLibraryFonts =
|
||||
System.getProperty("user.home") + "/Library/Fonts";
|
||||
@@ -428,7 +428,7 @@ public class PGraphicsPDF extends PGraphicsJava2D {
|
||||
scale((x2 - x1) / imageWidth,
|
||||
(y2 - y1) / imageHeight);
|
||||
if (u2-u1 == imageWidth && v2-v1 == imageHeight) {
|
||||
g2.drawImage(image.getImage(), 0, 0, null);
|
||||
g2.drawImage((Image) image.getNative(), 0, 0, null);
|
||||
} else {
|
||||
PImage tmp = image.get(u1, v1, u2-u1, v2-v1);
|
||||
g2.drawImage((Image) tmp.getNative(), 0, 0, null);
|
||||
|
||||
Reference in New Issue
Block a user