java 1.3 fixes for main(), and removing background() from resize()

This commit is contained in:
benfry
2005-06-09 04:37:45 +00:00
parent e62e5d79a4
commit da5ff54ad4
3 changed files with 6 additions and 4 deletions
+3 -3
View File
@@ -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;
}
+1 -1
View File
@@ -99,7 +99,7 @@ public class PGraphics2 extends PGraphics {
allocate();
// clear the screen with the old background color
background(backgroundColor);
//background(backgroundColor);
}
+2
View File
@@ -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