mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fix IllegalArgumentException with java2d
This commit is contained in:
@@ -154,7 +154,7 @@ public class PGraphicsJava2D extends PGraphics {
|
||||
// hm, mark pixels as changed, because this will instantly do a full
|
||||
// copy of all the pixels to the surface.. so that's kind of a mess.
|
||||
//updatePixels();
|
||||
|
||||
|
||||
insideDraw = false;
|
||||
}
|
||||
|
||||
@@ -230,7 +230,7 @@ public class PGraphicsJava2D extends PGraphics {
|
||||
}
|
||||
break;
|
||||
*/
|
||||
|
||||
|
||||
case TRIANGLES:
|
||||
if ((vertexCount % 3) == 0) {
|
||||
triangle(vertices[vertexCount - 3][MX],
|
||||
@@ -805,6 +805,10 @@ public class PGraphicsJava2D extends PGraphics {
|
||||
|
||||
Object antialias =
|
||||
g2.getRenderingHint(RenderingHints.KEY_ANTIALIASING);
|
||||
if (antialias == null) {
|
||||
// if smooth() and noSmooth() not called, this will be null (0120)
|
||||
antialias = RenderingHints.VALUE_ANTIALIAS_DEFAULT;
|
||||
}
|
||||
|
||||
// override the current smoothing setting based on the font
|
||||
// also changes global setting for antialiasing, but this is because it's
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
0120 core
|
||||
X fixed error when using hint(ENABLE_NATIVE_FONTS) with JAVA2D
|
||||
X java.lang.IllegalArgumentException:
|
||||
X null incompatible with Global antialiasing enable key
|
||||
|
||||
_ loadBytes() and saveStream() functions badly need optimization!
|
||||
_ don't bother using a buffering stream, just handle internally. gah!
|
||||
|
||||
Reference in New Issue
Block a user