summaryrefslogtreecommitdiff
path: root/alf/alflayout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alf/alflayout.cpp')
-rw-r--r--alf/alflayout.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/alf/alflayout.cpp b/alf/alflayout.cpp
index 38e69a2..176070d 100644
--- a/alf/alflayout.cpp
+++ b/alf/alflayout.cpp
@@ -277,10 +277,8 @@ ALF_Layout_CalcButtonSize(HWND hwndWindow, ALFLayout *layout, HWND hwndButton, S
DrawText(hdc, textbuf, -1, &r, format);
ALF_Free(textbuf);
- int xpadding = ALF_Compat_GetSystemMetricsForDpi(SM_CXEDGE,
- (UINT)layout->dpi) * 2 + 6;
- int ypadding = ALF_Compat_GetSystemMetricsForDpi(SM_CYEDGE,
- (UINT)layout->dpi) * 2 + 4;
+ int xpadding = ALF_CentipointsToPixels(1800, layout->dpi);
+ int ypadding = ALF_CentipointsToPixels(600, layout->dpi);
if (pSize->cx < r.right - r.left + xpadding) {
pSize->cx = r.right - r.left + xpadding;