From 12021269b7789a680bf1286616505a7546f26d93 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 7 Apr 2015 19:36:46 -0400 Subject: Fixed compiler warnings. Stack works! --- new/container_windows.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'new/container_windows.c') diff --git a/new/container_windows.c b/new/container_windows.c index 152ce3a..90ebab1 100644 --- a/new/container_windows.c +++ b/new/container_windows.c @@ -60,15 +60,15 @@ void resize(uiControl *control, HWND parent, RECT r) { uiSizing d; HDC dc; - HFONT prevFont; + HFONT prevfont; TEXTMETRICW tm; SIZE size; dc = GetDC(parent); if (dc == NULL) logLastError("error getting DC for preferred size calculations"); - prevFont = (HFONT) SelectObject(dc, hMessageFont); - if (prevFont == NULL) + prevfont = (HFONT) SelectObject(dc, hMessageFont); + if (prevfont == NULL) logLastError("error loading control font into device context for preferred size calculation"); if (GetTextMetricsW(dc, &tm) == 0) logLastError("error getting text metrics for preferred size calculations"); @@ -77,7 +77,7 @@ void resize(uiControl *control, HWND parent, RECT r) d.baseX = (int) ((size.cx / 26 + 1) / 2); d.baseY = (int) tm.tmHeight; d.internalLeading = tm.tmInternalLeading; - if (SelectObject(dc, prevFont) != hMessageFont) + if (SelectObject(dc, prevfont) != hMessageFont) logLastError("error restoring previous font into device context after preferred size calculations"); if (ReleaseDC(parent, dc) == 0) logLastError("error releasing DC for preferred size calculations"); -- cgit v1.2.3