Skip to content

Commit fdbd7b7

Browse files
committed
Allow smooth scaling for 100% monitors too
Smooth scaling is used if: - (in Windows) Monitor-specific scaling is active - (in Linux) if the zoom level of the monitor is divisible by 100 - (in Mac) never
1 parent 54dad6c commit fdbd7b7

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ public static void setDeviceZoom (int nativeDeviceZoom) {
603603

604604
DPIUtil.deviceZoom = deviceZoom;
605605
System.setProperty("org.eclipse.swt.internal.deviceZoom", Integer.toString(deviceZoom));
606-
if (deviceZoom != 100 && autoScaleMethodSetting == AutoScaleMethod.AUTO) {
606+
if (autoScaleMethodSetting == AutoScaleMethod.AUTO) {
607607
if (sholdUseSmoothScaling()) {
608608
autoScaleMethod = AutoScaleMethod.SMOOTH;
609609
} else {

0 commit comments

Comments
 (0)