workaround for JavaFX y axis flip (fixes #3795)

This commit is contained in:
Ben Fry
2015-09-15 18:05:30 -04:00
parent d8fd034bf5
commit 3ebda8c389
3 changed files with 16 additions and 0 deletions
@@ -229,12 +229,24 @@ public class PSurfaceFX implements PSurface {
int width = sketch.sketchWidth();
int height = sketch.sketchHeight();
int smooth = sketch.sketchSmooth();
/*
SceneAntialiasing sceneAntialiasing = (smooth == 0) ?
SceneAntialiasing.DISABLED :
SceneAntialiasing.BALANCED;
//stage.setScene(new Scene(new Group(canvas)));
stage.setScene(new Scene(stackPane, width, height, false, sceneAntialiasing));
*/
// Workaround for JavaFX bug
// https://bugs.openjdk.java.net/browse/JDK-8136495
// https://github.com/processing/processing/issues/3795
if (smooth == 0) {
stage.setScene(new Scene(stackPane, width, height, false, SceneAntialiasing.DISABLED));
} else {
stage.setScene(new Scene(stackPane, width, height, false));
}
//stage.show(); // move to setVisible(true)?
// initFrame in different thread is waiting for
+2
View File
@@ -1,4 +1,6 @@
0245 core (3.0b7)
X FX2D display is inverted in 3.0b6
X https://github.com/processing/processing/issues/3795
andres
+2
View File
@@ -13,6 +13,8 @@ X CM: Clicking item in Libraries list throws exception
X https://github.com/processing/processing/issues/3667
X CM: Libraries missing descriptions and PFoundation credit
X https://github.com/processing/processing/issues/3688
X use real version of bold font, rather than the fake version
X remove the "v" from the version numbers in the updates tab
watcher
X prevent re-prompting users when they say "no" to "sketch modified" message