mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 01:50:44 +01:00
add redraw() after changing size of display
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
|
||||
|
||||
Reference in New Issue
Block a user