diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java index 3b34a3d2500..08192bb6a16 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java @@ -618,8 +618,8 @@ public Point computeSize (int wHint, int hHint) { public Point computeSize (int wHint, int hHint, boolean changed){ checkWidget (); int zoom = getZoom(); - wHint = (wHint != SWT.DEFAULT ? DPIUtil.scaleUp(wHint, zoom) : wHint); - hHint = (hHint != SWT.DEFAULT ? DPIUtil.scaleUp(hHint, zoom) : hHint); + wHint = (wHint != SWT.DEFAULT ? DPIUtil.scaleUp(wHint, nativeZoom) : wHint); + hHint = (hHint != SWT.DEFAULT ? DPIUtil.scaleUp(hHint, nativeZoom) : hHint); return DPIUtil.scaleDown(computeSizeInPixels(wHint, hHint, changed), zoom); }