From 45ae24781660c931d0da6c8b15642bf06bb65380 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Sat, 18 Feb 2023 13:33:37 -0500 Subject: [PATCH 1/2] trying to sort out dpi issues on Windows --- build/windows/fenster/README.md | 7 +++++++ todo.txt | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/build/windows/fenster/README.md b/build/windows/fenster/README.md index eb5db077c..29f9abeac 100644 --- a/build/windows/fenster/README.md +++ b/build/windows/fenster/README.md @@ -30,8 +30,15 @@ This was the intended approach, however the result works 3 times in 5, has an im * +### Use Cygwin + +Install `mingw-86_64-gcc-core`, `mingw-86_64-gcc-g++`, `make`. (Also `nano` for good measure.) Had to switch to this because MSYS2 always requires `msys-2.0.dll`, which is > 3 MB to include, and instead, `mingw64` uses the widely available `msvcrt.dll`. + + ### Building the JNI code +> See above for final version used… Also, did not use the JNI version because it failed often. + * Install MSYS2 from via * Within an MSYS shell, run updates and install `gcc` diff --git a/todo.txt b/todo.txt index cb695b671..b5a2066a3 100755 --- a/todo.txt +++ b/todo.txt @@ -31,6 +31,11 @@ X when exporting, the "exporting application" message doesn't seem to clear X was a regression caused by ExportPrompt changes X after exporting application, open the sketch folder +_ change the welcome screen to be wide instead of vertical + +_ fullScreen(P2D) from an executable does not work properly +_ https://github.com/processing/processing4/issues/514 + _ exporting application while still running on Windows _ just says "Error during export" rather than something more useful about deleting dir From 3d463e97841c5400c73bb92feebac3f4dab630e8 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Sat, 18 Feb 2023 14:45:35 -0500 Subject: [PATCH 2/2] clarifying language for window manager resize --- core/src/processing/opengl/PSurfaceJOGL.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/processing/opengl/PSurfaceJOGL.java b/core/src/processing/opengl/PSurfaceJOGL.java index d341ca6f8..7a77bc757 100644 --- a/core/src/processing/opengl/PSurfaceJOGL.java +++ b/core/src/processing/opengl/PSurfaceJOGL.java @@ -809,7 +809,9 @@ public class PSurfaceJOGL implements PSurface { 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.", + "%dx%d to %dx%d by the operating system.%n" + + "This is happening outside Processing, " + + "and is probably a limitation of the OS or window manager.", sketchWidthRequested, sketchHeightRequested, sketchWidth, sketchHeight); } }