Skip to content

Commit 45d5681

Browse files
committed
Revert "Activate monitor-specific scaling before Display instantiation"
This partially reverts commit 3587081. It introduced a regression as preferences cannot be read that early during startup. Moving that preference evaluation call is reverted. Fixes #2712
1 parent de8c667 commit 45d5681

File tree

1 file changed

+1
-2
lines changed
  • bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal

1 file changed

+1
-2
lines changed

bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/Workbench.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ public static int createAndRunWorkbench(final Display display, final WorkbenchAd
588588
int orientation = store.getInt(IPreferenceConstants.LAYOUT_DIRECTION);
589589
Window.setDefaultOrientation(orientation);
590590
}
591+
setRescaleAtRuntimePropertyFromPreference();
591592
if (obj instanceof E4Application) {
592593
E4Application e4app = (E4Application) obj;
593594
E4Workbench e4Workbench = e4app.createE4Workbench(getApplicationContext(), display);
@@ -757,8 +758,6 @@ public static Display createDisplay() {
757758
Display.setAppName(applicationName);
758759
}
759760

760-
setRescaleAtRuntimePropertyFromPreference();
761-
762761
// create the display
763762
Display newDisplay = Display.getCurrent();
764763
if (newDisplay == null) {

0 commit comments

Comments
 (0)