summaryrefslogtreecommitdiff
path: root/new/button_windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'new/button_windows.c')
-rw-r--r--new/button_windows.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/new/button_windows.c b/new/button_windows.c
index 099fa6b..c331e89 100644
--- a/new/button_windows.c
+++ b/new/button_windows.c
@@ -52,7 +52,7 @@ static void preferredSize(uiControl *c, uiSizing *d, intmax_t *width, intmax_t *
// Microsoft says to use a fixed width for all buttons; this isn't good enough
// use the text width instead, with some edge padding
*width = uiWindowsWindowTextWidth(hwnd) + (2 * GetSystemMetrics(SM_CXEDGE));
- *height = uiDlgUnitToY(buttonHeight, d->sys->baseY);
+ *height = uiDlgUnitsToY(buttonHeight, d->sys->baseY);
}
static void defaultOnClicked(uiControl *c, void *data)