From 18a58e56fa2b0e7651b1ceb738fd14ffa5719f33 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 9 Apr 2015 18:45:58 -0400 Subject: DlgUnit -> DlgUnits --- new/button_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'new/button_windows.c') 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) -- cgit v1.2.3