From 26102edfcafec5c8c42949989be6833699790740 Mon Sep 17 00:00:00 2001
From: Phillipus
Date: Wed, 7 Aug 2024 12:43:08 +0100
Subject: [PATCH] Limit check for macOS major version to 14 for flipped splash
image workaround
- As background image flipping is fixed in macOS 15 limit the version check to version 14 only
---
.../Eclipse UI/org/eclipse/ui/internal/Workbench.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
index 5cb554d7f41..8e9a02ca0de 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
@@ -861,7 +861,7 @@ private static Image getImage(Display display, InputStream input) {
* (https://github.com/eclipse-platform/eclipse.platform.swt/issues/772) ,Splash
* Screen gets flipped.As a workaround the image is flipped and returned.
*/
- if (Integer.parseInt(System.getProperty("os.version").split("\\.")[0]) >= 14) { //$NON-NLS-1$ //$NON-NLS-2$
+ if (Integer.parseInt(System.getProperty("os.version").split("\\.")[0]) == 14) { //$NON-NLS-1$ //$NON-NLS-2$
GC gc = new GC(image);
Transform tr = new Transform(display);
tr.setElements(1, 0, 0, -1, 0, 0);