Skip to content

Commit

Permalink
Scale up magic number in Button
Browse files Browse the repository at this point in the history
Use DPIUtil
  • Loading branch information
jakub-suliga committed Jul 3, 2024
1 parent e02dd67 commit e09fd1a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ else if ((style & SWT.RIGHT) != 0) {
if (length == 0) {
height = Math.max (height, lptm.tmHeight);
} else {
extra = Math.max (MARGIN * 2, lptm.tmAveCharWidth);
extra = Math.max (DPIUtil.autoScaleUp(MARGIN * 2, getZoom()), lptm.tmAveCharWidth);
char [] buffer = text.toCharArray ();
RECT rect = new RECT ();
int flags = OS.DT_CALCRECT | OS.DT_SINGLELINE;
Expand Down

0 comments on commit e09fd1a

Please sign in to comment.