Skip to content

Commit 2655c91

Browse files
committed
Add DPIUtil methods for custom auto-scale specification
1 parent 8569eb7 commit 2655c91

File tree

1 file changed

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

1 file changed

+8
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -605,10 +605,6 @@ public static int getDeviceZoom() {
605605
return deviceZoom;
606606
}
607607

608-
public static int getDeviceZoom(String autoScaleProperty) {
609-
return getZoomForAutoscaleProperty(nativeDeviceZoom, autoScaleProperty);
610-
}
611-
612608
public static void setDeviceZoom (int nativeDeviceZoom) {
613609
DPIUtil.nativeDeviceZoom = nativeDeviceZoom;
614610
int deviceZoom = getZoomForAutoscaleProperty (nativeDeviceZoom);
@@ -685,6 +681,14 @@ public static boolean isMonitorSpecificScalingActive() {
685681
return updateOnRuntimeValue;
686682
}
687683

684+
public static String getAutoScaleValue() {
685+
return autoScaleValue;
686+
}
687+
688+
public static void setAutoScaleValue(String value) {
689+
autoScaleValue = value;
690+
}
691+
688692
public static void setAutoScaleForMonitorSpecificScaling() {
689693
boolean isDefaultAutoScale = autoScaleValue == null;
690694
if (isDefaultAutoScale) {

0 commit comments

Comments
 (0)