mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 14:19:19 +01:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -2626,7 +2626,7 @@ public class PGraphicsJava2D extends PGraphics {
|
||||
@Override
|
||||
public void updatePixels(int x, int y, int c, int d) {
|
||||
//if ((x == 0) && (y == 0) && (c == width) && (d == height)) {
|
||||
System.err.format("%d %d %d %d .. w/h = %d %d .. pw/ph = %d %d %n", x, y, c, d, width, height, pixelWidth, pixelHeight);
|
||||
// System.err.format("%d %d %d %d .. w/h = %d %d .. pw/ph = %d %d %n", x, y, c, d, width, height, pixelWidth, pixelHeight);
|
||||
if ((x != 0) || (y != 0) || (c != pixelWidth) || (d != pixelHeight)) {
|
||||
// Show a warning message, but continue anyway.
|
||||
showVariationWarning("updatePixels(x, y, w, h)");
|
||||
|
||||
@@ -1379,13 +1379,9 @@ public class PSurfaceAWT implements PSurface {
|
||||
|
||||
// Don't resize the renderer from the EDT (i.e. from a ComponentEvent),
|
||||
// otherwise it may attempt a resize mid-render.
|
||||
// if (g != null) {
|
||||
Dimension currentSize = canvas.getSize();
|
||||
if (currentSize.width != sketchWidth || currentSize.height != sketchHeight) {
|
||||
//resizeRenderer(currentSize.width, currentSize.height);
|
||||
//System.err.format("need to resize from %s to %d, %d", currentSize, graphics.width, graphics.height);
|
||||
System.err.format("need to resize from %s to %d, %d%n", currentSize, sketchWidth, sketchHeight);
|
||||
}
|
||||
// Dimension currentSize = canvas.getSize();
|
||||
// if (currentSize.width != sketchWidth || currentSize.height != sketchHeight) {
|
||||
// System.err.format("need to resize from %s to %d, %d%n", currentSize, sketchWidth, sketchHeight);
|
||||
// }
|
||||
|
||||
// render a single frame
|
||||
|
||||
Reference in New Issue
Block a user