Skip to content

Commit 8481886

Browse files
committed
Use auto-scale "nearest" by default in Windows #2910
Defaulting to "smooth" creates blurry images when first displaying the image in a monitor with a high zoom level (e.g. 200%). This is a temporary workaround until https://github.com/eclipse-platform/eclipse.platform.ui/issues/2910 is properly fixed.
1 parent 2a50eae commit 8481886

File tree

1 file changed

+4
-1
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal

1 file changed

+4
-1
lines changed

bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/DPIUtil.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,10 @@ public static void setDeviceZoom (int nativeDeviceZoom) {
626626
private static boolean sholdUseSmoothScaling() {
627627
return switch (SWT.getPlatform()) {
628628
case "gtk" -> deviceZoom / 100 * 100 != deviceZoom;
629-
case "win32" -> isMonitorSpecificScalingActive();
629+
// FIXME the "win32" case should be uncommented as soon as the issue
630+
// https://github.com/eclipse-platform/eclipse.platform.ui/issues/2910
631+
// is properly fixed
632+
// case "win32" -> isMonitorSpecificScalingActive();
630633
default -> false;
631634
};
632635
}

0 commit comments

Comments
 (0)