mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
workaround for JavaFX y axis flip (fixes #3795)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user