diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/SingleZoomCoordinateSystemMapper.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/SingleZoomCoordinateSystemMapper.java index 0ef2493a3d1..89ee9cfeb77 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/SingleZoomCoordinateSystemMapper.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/SingleZoomCoordinateSystemMapper.java @@ -77,22 +77,22 @@ public Rectangle mapMonitorBounds(Rectangle rect, int zoom) { @Override public Point translateFromDisplayCoordinates(Point point, int zoom) { - return Win32DPIUtils.pixelToPoint(point, zoom); + return Win32DPIUtils.pixelToPoint(point, DPIUtil.getDeviceZoom()); } @Override public Point translateToDisplayCoordinates(Point point, int zoom) { - return Win32DPIUtils.pointToPixel(point, zoom); + return Win32DPIUtils.pointToPixel(point, DPIUtil.getDeviceZoom()); } @Override public Rectangle translateFromDisplayCoordinates(Rectangle rect, int zoom) { - return Win32DPIUtils.pixelToPoint(rect, zoom); + return Win32DPIUtils.pixelToPoint(rect, DPIUtil.getDeviceZoom()); } @Override public Rectangle translateToDisplayCoordinates(Rectangle rect, int zoom) { - return Win32DPIUtils.pointToPixel(rect, zoom); + return Win32DPIUtils.pointToPixel(rect, DPIUtil.getDeviceZoom()); } @Override