diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index 6c1297120..f46dbdc50 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -896,14 +896,18 @@ in */ * Component has been resized (by an event) and the renderer needs an update. */ protected void setRendererSize(int w, int h) { + boolean changed = false; if (g == null) { g = PApplet.createGraphics(w, h, JAVA2D, null, this); } else if (w != g.width || h != g.height) { g.resize(w, h); + changed = true; } width = w; height = h; + if (changed) redraw(); + //redraw = true; /* if (g == null) { g = PApplet.createGraphics(w, h, nextRenderer, nextRendererPath, this); @@ -8169,6 +8173,12 @@ in */ } + public void noLights() { + if (recorder != null) recorder.noLights(); + g.noLights(); + } + + public void ambientLight(float red, float green, float blue) { if (recorder != null) recorder.ambientLight(red, green, blue); g.ambientLight(red, green, blue); diff --git a/core/todo.txt b/core/todo.txt index 2be121b32..217075129 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -1,6 +1,8 @@ 0134 core X add noLights() method X http://dev.processing.org/bugs/show_bug.cgi?id=666 +X redraw the screen after resize events (even with noLoop) +X http://dev.processing.org/bugs/show_bug.cgi?id=664 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .