Skip to content

Commit

Permalink
Device getDPI scaling fix
Browse files Browse the repository at this point in the history
This commit enforces device zoom to be used for scaling down the DPI
values instead of the native zoom.

contributes to #62 and eclipse-platform#127
  • Loading branch information
amartya4256 authored and fedejeanne committed Dec 19, 2024
1 parent a5e1922 commit 4621729
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ public Point getDPI () {
int dpiX = OS.GetDeviceCaps (hDC, OS.LOGPIXELSX);
int dpiY = OS.GetDeviceCaps (hDC, OS.LOGPIXELSY);
internal_dispose_GC (hDC, null);
return DPIUtil.scaleDown(new Point (dpiX, dpiY), getDeviceZoom());
return DPIUtil.scaleDown(new Point (dpiX, dpiY), DPIUtil.getZoomForAutoscaleProperty(getDeviceZoom()));
}

/**
Expand Down

0 comments on commit 4621729

Please sign in to comment.