Skip to content

Commit

Permalink
Allow smooth scaling for 100% monitors in Windows too
Browse files Browse the repository at this point in the history
Smooth scaling is used if:
- (in Windows) Monitor-specific scaling is active
- (in Linux) if the zoom level of the monitor is not divisible by 100
- (in Mac) never

In Linux, once the mode changes to smooth, it stays in smooth.
  • Loading branch information
fedejeanne committed Feb 7, 2025
1 parent 54dad6c commit af36324
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,8 @@ public static void setDeviceZoom (int nativeDeviceZoom) {

DPIUtil.deviceZoom = deviceZoom;
System.setProperty("org.eclipse.swt.internal.deviceZoom", Integer.toString(deviceZoom));
if (deviceZoom != 100 && autoScaleMethodSetting == AutoScaleMethod.AUTO) {
if (autoScaleMethodSetting == AutoScaleMethod.AUTO //
&& autoScaleMethod != AutoScaleMethod.SMOOTH) { // once in "smooth" mode, stick to it
if (sholdUseSmoothScaling()) {
autoScaleMethod = AutoScaleMethod.SMOOTH;
} else {
Expand Down

0 comments on commit af36324

Please sign in to comment.