From da5ff54ad4772a433431cf2ff56a4c1fec9057ec Mon Sep 17 00:00:00 2001 From: benfry Date: Thu, 9 Jun 2005 04:37:45 +0000 Subject: [PATCH] java 1.3 fixes for main(), and removing background() from resize() --- core/PApplet.java | 6 +++--- core/PGraphics2.java | 2 +- core/todo.txt | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/core/PApplet.java b/core/PApplet.java index e1992db36..3bd6b5876 100644 --- a/core/PApplet.java +++ b/core/PApplet.java @@ -5289,8 +5289,8 @@ v PApplet.this.stop(); String folder = System.getProperty("user.dir"); String name = null; boolean present = false; - Color backgroundColor = Color.BLACK; - Color stopColor = Color.GRAY; + Color backgroundColor = Color.black; //BLACK; + Color stopColor = Color.gray; //GRAY; GraphicsDevice displayDevice = null; String param = null, value = null; @@ -5484,7 +5484,7 @@ v PApplet.this.stop(); frame.setLayout(null); frame.add(applet); - if (backgroundColor == Color.BLACK) { + if (backgroundColor == Color.black) { //BLACK) { // this means no bg color unless specified backgroundColor = SystemColor.control; } diff --git a/core/PGraphics2.java b/core/PGraphics2.java index 6352f4bc1..ca3061814 100644 --- a/core/PGraphics2.java +++ b/core/PGraphics2.java @@ -99,7 +99,7 @@ public class PGraphics2 extends PGraphics { allocate(); // clear the screen with the old background color - background(backgroundColor); + //background(backgroundColor); } diff --git a/core/todo.txt b/core/todo.txt index 682eb7a89..d1a33f929 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -11,6 +11,8 @@ X otherwise g.xxxx won't work X how far should this go? vertices etc? X vertices not included because switching to triangleImpl and lineImpl X fix for copy() in java2d to make things a little speedier +X make PApplet.main() for java 1.3 friendly (Color class constants) +X remove call to background() in PGraphics2 _ change PGraphics to PGraphics2 _ or not, because PGraphics has all the base stuff for 3D