Skip to content

Commit 2734f89

Browse files
committed
don't show window manager resize message when using fullScreen()
1 parent 4091639 commit 2734f89

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

core/src/processing/opengl/PSurfaceJOGL.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -808,9 +808,12 @@ public void display(GLAutoDrawable drawable) {
808808

809809
if (sketch.frameCount == 0) {
810810
if (sketchWidth != sketchWidthRequested || sketchHeight != sketchHeightRequested) {
811-
PGraphics.showWarning("The sketch has been resized from " +
812-
"%d\u2715%d to %d\u2715%d by the window manager.",
813-
sketchWidthRequested, sketchHeightRequested, sketchWidth, sketchHeight);
811+
if (!sketch.sketchFullScreen()) {
812+
// don't show the message when using fullScreen()
813+
PGraphics.showWarning("The sketch has been resized from " +
814+
"%d\u2715%d to %d\u2715%d by the window manager.",
815+
sketchWidthRequested, sketchHeightRequested, sketchWidth, sketchHeight);
816+
}
814817
}
815818
requestFocus();
816819
}

core/todo.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ _ jogl build for m1
1919
_ https://github.com/processing/processing4/issues/128
2020
_ https://forum.jogamp.org/JOGL-for-Mac-ARM-Silicon-td4040887.html
2121
_ https://github.com/jzy3d/jogl/blob/feature/macosx-arm64/HOW-TO-ADD-ARM64-TO-2.4.md
22+
_ direct link to our reference https://github.com/jzy3d/jogl/blob/c43709921f9a616880782646ca7681a9eadee091/HOW-TO-ADD-ARM64-TO-2.4.md
2223

24+
X incorporated patches
25+
X https://github.com/jzy3d/jogl/pull/17/files
26+
X https://github.com/jzy3d/jogl/pull/16/files
2327

2428
_ concurrent StringDict et al
2529
_ why no concurrent TreemMap? https://stackoverflow.com/a/17656453

todo.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ X change up StatusPanelDetail constructor to clean up accessors
8080

8181
preproc
8282
X correctly handling sketch renderer with fullScreen()
83+
X also when using other display numbers
8384
X https://github.com/processing/processing4/pull/474
85+
X https://github.com/processing/processing4/issues/471
8486
X return PreprocessorResult for Android Mode
8587
X https://github.com/processing/processing4/pull/470
8688
X https://github.com/processing/processing4/issues/469

0 commit comments

Comments
 (0)