diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/DPIUtil.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/DPIUtil.java index 3cc772fb956..69a9723a561 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/DPIUtil.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/DPIUtil.java @@ -597,6 +597,10 @@ public static int getDeviceZoom() { return deviceZoom; } +public static int getDeviceZoom(String autoScaleProperty) { + return getZoomForAutoscaleProperty(nativeDeviceZoom, autoScaleProperty); +} + public static void setDeviceZoom (int nativeDeviceZoom) { DPIUtil.nativeDeviceZoom = nativeDeviceZoom; int deviceZoom = getZoomForAutoscaleProperty (nativeDeviceZoom);