Skip to content

Commit

Permalink
[fix]Use correct DPIUtil call for pixel conversion
Browse files Browse the repository at this point in the history
This commit fixes an issue, where a call to DPIUtil was scaling down from points to pixels instead of scaling down

Fixes #1434
  • Loading branch information
akoch-yatta authored and akurtakov committed Sep 4, 2024
1 parent e44cfc9 commit 482c7ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,7 @@ void setBorderSpace(RECT newBorderwidth) {
}
void setBounds() {
int zoom = DPIUtil.getZoomForAutoscaleProperty(nativeZoom);
Rectangle area = DPIUtil.scaleDown(frame.getClientArea(), zoom); // To Pixels
Rectangle area = DPIUtil.scaleUp(frame.getClientArea(), zoom); // To Pixels
setBounds(DPIUtil.scaleDown(borderWidths.left, zoom),
DPIUtil.scaleDown(borderWidths.top, zoom),
DPIUtil.scaleDown(area.width - borderWidths.left - borderWidths.right, zoom),
Expand Down

0 comments on commit 482c7ca

Please sign in to comment.