fix IllegalArgumentException with java2d

This commit is contained in:
benfry
2006-10-11 01:14:47 +00:00
parent 4c452de256
commit 1f8755dafd
2 changed files with 9 additions and 2 deletions
@@ -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
+3
View File
@@ -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!