Skip to content

Commit a0b2776

Browse files
committed
clean up the last of the OpenGL file dialog shitshow
1 parent 9cb9638 commit a0b2776

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

core/src/processing/core/PApplet.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6247,6 +6247,7 @@ public void selectOutput(String prompt, String callback) {
62476247
selectOutput(prompt, callback, null);
62486248
}
62496249

6250+
62506251
public void selectOutput(String prompt, String callback, File file) {
62516252
selectOutput(prompt, callback, file, this);
62526253
}
@@ -6271,6 +6272,8 @@ static public void selectOutput(String prompt, String callbackMethod,
62716272
}
62726273

62736274

6275+
// Will remove the 'sketch' parameter once we get an upstream JOGL fix
6276+
// https://github.com/processing/processing/issues/3831
62746277
static protected void selectImpl(final String prompt,
62756278
final String callbackMethod,
62766279
final File defaultSelection,
@@ -6281,7 +6284,9 @@ static protected void selectImpl(final String prompt,
62816284
EventQueue.invokeLater(new Runnable() {
62826285
public void run() {
62836286
File selectedFile = null;
6284-
boolean hide = sketch != null && sketch.g instanceof PGraphicsOpenGL && platform == WINDOWS;
6287+
6288+
boolean hide = (sketch != null) &&
6289+
(sketch.g instanceof PGraphicsOpenGL) && (platform == WINDOWS);
62856290
if (hide) sketch.surface.setVisible(false);
62866291

62876292
if (useNativeSelect) {
@@ -6355,6 +6360,8 @@ static public void selectFolder(final String prompt,
63556360
}
63566361

63576362

6363+
// Will remove the 'sketch' parameter once we get an upstream JOGL fix
6364+
// https://github.com/processing/processing/issues/3831
63586365
static public void selectFolder(final String prompt,
63596366
final String callbackMethod,
63606367
final File defaultSelection,
@@ -6365,7 +6372,8 @@ static public void selectFolder(final String prompt,
63656372
public void run() {
63666373
File selectedFile = null;
63676374

6368-
boolean hide = sketch != null && sketch.g instanceof PGraphicsOpenGL && platform == WINDOWS;
6375+
boolean hide = (sketch != null) &&
6376+
(sketch.g instanceof PGraphicsOpenGL) && (platform == WINDOWS);
63696377
if (hide) sketch.surface.setVisible(false);
63706378

63716379
if (platform == MACOSX && useNativeSelect != false) {

core/todo.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ X https://github.com/processing/processing/issues/3825
1616
X https://github.com/processing/processing/commit/42c0150da0f400637de916db1f94a687a7bc4288
1717
X surface.setLocation() causing a freeze on Windows
1818
X https://github.com/processing/processing/commit/4c0f9234c0a48f62363233cafc9c9951ee351d3e
19+
X selectInput/Output() is behind the drawing window (Windows)
20+
X https://github.com/processing/processing/issues/3775
1921

20-
_ selectInput/Output() is behind the drawing window (Windows)
21-
_ https://github.com/processing/processing/issues/3775
22-
_ fixed has been added, test on Windows
22+
known
23+
_ window must close when using file dialogs with OpenGL on Windows
24+
_ https://github.com/processing/processing/issues/3831
2325

2426

2527
3.0 final

0 commit comments

Comments
 (0)