summaryrefslogtreecommitdiff
path: root/new/label_windows.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-12 23:14:56 -0400
committerPietro Gagliardi <[email protected]>2015-04-12 23:14:56 -0400
commitf726b74d32baf3002b5656591029f34168027e16 (patch)
tree0adf9a657fb81b9bba2d0e0d9c29db2692fb06e2 /new/label_windows.c
parenta0bfb65122c5e6d32bdc32bb87591bf6210f4ac8 (diff)
Fix helper: get rid of direct casts to HWND to make errors more obvious.
Diffstat (limited to 'new/label_windows.c')
-rw-r--r--new/label_windows.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/new/label_windows.c b/new/label_windows.c
index 8108033..3d8a5cc 100644
--- a/new/label_windows.c
+++ b/new/label_windows.c
@@ -26,7 +26,7 @@ static void onWM_DESTROY(uiControl *c)
static void preferredSize(uiControl *c, uiSizing *d, intmax_t *width, intmax_t *height)
{
- *width = uiWindowsWindowTextWidth((HWND) uiControlHandle(c));
+ *width = uiWindowsWindowTextWidth(uiControlHWND(c));
*height = uiDlgUnitsToY(labelHeight, d->sys->baseY);
}