From 2734f89f6494c1fe43cbca8c7c16ed227ce54259 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Sat, 23 Apr 2022 13:12:05 -0400 Subject: [PATCH] don't show window manager resize message when using fullScreen() --- core/src/processing/opengl/PSurfaceJOGL.java | 9 ++++++--- core/todo.txt | 4 ++++ todo.txt | 2 ++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/core/src/processing/opengl/PSurfaceJOGL.java b/core/src/processing/opengl/PSurfaceJOGL.java index d1a32f7fb..d3be8d34d 100644 --- a/core/src/processing/opengl/PSurfaceJOGL.java +++ b/core/src/processing/opengl/PSurfaceJOGL.java @@ -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(); } diff --git a/core/todo.txt b/core/todo.txt index 4b1157eda..ab1053d54 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -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 diff --git a/todo.txt b/todo.txt index 8af20f0c3..c3d67caa4 100755 --- a/todo.txt +++ b/todo.txt @@ -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