don't show window manager resize message when using fullScreen()

This commit is contained in:
Ben Fry
2022-04-23 13:12:05 -04:00
parent 409163986f
commit 2734f89f64
3 changed files with 12 additions and 3 deletions
+6 -3
View File
@@ -808,9 +808,12 @@ public class PSurfaceJOGL implements PSurface {
if (sketch.frameCount == 0) {
if (sketchWidth != sketchWidthRequested || sketchHeight != sketchHeightRequested) {
PGraphics.showWarning("The sketch has been resized from " +
"%d\u2715%d to %d\u2715%d by the window manager.",
sketchWidthRequested, sketchHeightRequested, sketchWidth, sketchHeight);
if (!sketch.sketchFullScreen()) {
// don't show the message when using fullScreen()
PGraphics.showWarning("The sketch has been resized from " +
"%d\u2715%d to %d\u2715%d by the window manager.",
sketchWidthRequested, sketchHeightRequested, sketchWidth, sketchHeight);
}
}
requestFocus();
}
+4
View File
@@ -19,7 +19,11 @@ _ jogl build for m1
_ https://github.com/processing/processing4/issues/128
_ https://forum.jogamp.org/JOGL-for-Mac-ARM-Silicon-td4040887.html
_ https://github.com/jzy3d/jogl/blob/feature/macosx-arm64/HOW-TO-ADD-ARM64-TO-2.4.md
_ direct link to our reference https://github.com/jzy3d/jogl/blob/c43709921f9a616880782646ca7681a9eadee091/HOW-TO-ADD-ARM64-TO-2.4.md
X incorporated patches
X https://github.com/jzy3d/jogl/pull/17/files
X https://github.com/jzy3d/jogl/pull/16/files
_ concurrent StringDict et al
_ why no concurrent TreemMap? https://stackoverflow.com/a/17656453
+2
View File
@@ -80,7 +80,9 @@ X change up StatusPanelDetail constructor to clean up accessors
preproc
X correctly handling sketch renderer with fullScreen()
X also when using other display numbers
X https://github.com/processing/processing4/pull/474
X https://github.com/processing/processing4/issues/471
X return PreprocessorResult for Android Mode
X https://github.com/processing/processing4/pull/470
X https://github.com/processing/processing4/issues/469