diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-07 19:36:46 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-07 19:36:46 -0400 |
| commit | 12021269b7789a680bf1286616505a7546f26d93 (patch) | |
| tree | df71575b471588858fa1b6149733b079e5a5a06d /new/container_windows.c | |
| parent | 42204af0865cd6c712b1f9b1e20694c1fc971503 (diff) | |
Fixed compiler warnings. Stack works!
Diffstat (limited to 'new/container_windows.c')
| -rw-r--r-- | new/container_windows.c | 8 |
1 files changed, 4 insertions, 4 deletions
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"); |
