mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
java 1.3 fixes for main(), and removing background() from resize()
This commit is contained in:
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ public class PGraphics2 extends PGraphics {
|
||||
allocate();
|
||||
|
||||
// clear the screen with the old background color
|
||||
background(backgroundColor);
|
||||
//background(backgroundColor);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user