From 3029bd54f6e333b1c7bc38b433e271df65e06d43 Mon Sep 17 00:00:00 2001 From: crschnick Date: Wed, 19 Apr 2023 03:15:23 +0000 Subject: [PATCH] Windows 7 fixes --- app/src/main/java/io/xpipe/app/core/AppMainWindow.java | 8 +------- app/src/main/java/io/xpipe/app/core/AppSplashScreen.java | 8 +------- app/src/main/java/io/xpipe/app/core/AppWindowHelper.java | 7 +------ 3 files changed, 3 insertions(+), 20 deletions(-) diff --git a/app/src/main/java/io/xpipe/app/core/AppMainWindow.java b/app/src/main/java/io/xpipe/app/core/AppMainWindow.java index b2064a4c..609ea737 100644 --- a/app/src/main/java/io/xpipe/app/core/AppMainWindow.java +++ b/app/src/main/java/io/xpipe/app/core/AppMainWindow.java @@ -5,13 +5,10 @@ import io.xpipe.app.issue.TrackEvent; import io.xpipe.app.prefs.AppPrefs; import io.xpipe.app.prefs.CloseBehaviourAlert; import io.xpipe.app.util.ThreadHelper; -import javafx.application.ConditionalFeature; -import javafx.application.Platform; import javafx.beans.property.BooleanProperty; import javafx.beans.property.SimpleBooleanProperty; import javafx.geometry.Rectangle2D; import javafx.scene.Scene; -import javafx.scene.SceneAntialiasing; import javafx.scene.input.KeyCode; import javafx.scene.input.KeyEvent; import javafx.stage.Screen; @@ -220,10 +217,7 @@ public class AppMainWindow { private void setupContent(Comp content) { var contentR = content.createRegion(); - var aa = Platform.isSupported(ConditionalFeature.SCENE3D) - ? SceneAntialiasing.BALANCED - : SceneAntialiasing.DISABLED; - var scene = new Scene(contentR, -1, -1, false, aa); + var scene = new Scene(contentR, -1, -1, false); stage.setScene(scene); contentR.requestFocus(); TrackEvent.debug("Set content scene"); diff --git a/app/src/main/java/io/xpipe/app/core/AppSplashScreen.java b/app/src/main/java/io/xpipe/app/core/AppSplashScreen.java index 5e23805e..3e30397a 100644 --- a/app/src/main/java/io/xpipe/app/core/AppSplashScreen.java +++ b/app/src/main/java/io/xpipe/app/core/AppSplashScreen.java @@ -1,10 +1,7 @@ package io.xpipe.app.core; import io.xpipe.app.Main; -import javafx.application.ConditionalFeature; -import javafx.application.Platform; import javafx.scene.Scene; -import javafx.scene.SceneAntialiasing; import javafx.scene.image.ImageView; import javafx.scene.layout.Pane; import javafx.stage.Stage; @@ -20,10 +17,7 @@ public class AppSplashScreen { stage.initStyle(StageStyle.TRANSPARENT); var content = new ImageView(Main.class.getResource("resources/img/loading.gif").toString()); - var aa = Platform.isSupported(ConditionalFeature.SCENE3D) - ? SceneAntialiasing.BALANCED - : SceneAntialiasing.DISABLED; - var scene = new Scene(new Pane(content), -1, -1, false, aa); + var scene = new Scene(new Pane(content), -1, -1, false); stage.setScene(scene); stage.show(); } diff --git a/app/src/main/java/io/xpipe/app/core/AppWindowHelper.java b/app/src/main/java/io/xpipe/app/core/AppWindowHelper.java index 2e09fff0..402ae634 100644 --- a/app/src/main/java/io/xpipe/app/core/AppWindowHelper.java +++ b/app/src/main/java/io/xpipe/app/core/AppWindowHelper.java @@ -4,13 +4,11 @@ import io.xpipe.app.comp.base.LoadingOverlayComp; import io.xpipe.app.fxcomps.Comp; import io.xpipe.app.issue.TrackEvent; import io.xpipe.app.util.ThreadHelper; -import javafx.application.ConditionalFeature; import javafx.application.Platform; import javafx.beans.value.ObservableValue; import javafx.geometry.Insets; import javafx.scene.Node; import javafx.scene.Scene; -import javafx.scene.SceneAntialiasing; import javafx.scene.control.Alert; import javafx.scene.control.Button; import javafx.scene.control.ButtonType; @@ -157,10 +155,7 @@ public class AppWindowHelper { var content = loading != null ? new LoadingOverlayComp(baseComp, loading) : baseComp; var contentR = content.createRegion(); AppFont.small(contentR); - var aa = Platform.isSupported(ConditionalFeature.SCENE3D) - ? SceneAntialiasing.BALANCED - : SceneAntialiasing.DISABLED; - var scene = new Scene(bindSize ? new Pane(contentR) : contentR, -1, -1, false, aa); + var scene = new Scene(bindSize ? new Pane(contentR) : contentR, -1, -1, false); stage.setScene(scene); contentR.requestFocus(); if (bindSize) {