From 1e74b6379c11719ee1b31504db888573ee7d17ad Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Thu, 31 Mar 2011 20:21:25 +0200 Subject: [PATCH] comctl32: Simplify MONTHCAL_PaintLeadTrailMonths. --- dlls/comctl32/monthcal.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c index 58afc9790c5..bae19f87e4a 100644 --- a/dlls/comctl32/monthcal.c +++ b/dlls/comctl32/monthcal.c @@ -937,15 +937,13 @@ static void MONTHCAL_PaintFocusAndCircle(const MONTHCAL_INFO *infoPtr, HDC hdc, /* months before first calendar month and after last calendar month */ static void MONTHCAL_PaintLeadTrailMonths(const MONTHCAL_INFO *infoPtr, HDC hdc, const PAINTSTRUCT *ps) { - INT prev_month, mask, length; + INT mask, length; SYSTEMTIME st_max, st; if (infoPtr->dwStyle & MCS_NOTRAILINGDATES) return; SetTextColor(hdc, infoPtr->colors[MCSC_TRAILINGTEXT]); - prev_month = infoPtr->calendars[0].month.wMonth - 1; - /* draw prev month */ MONTHCAL_GetMinDate(infoPtr, &st); mask = 1 << (st.wDay-1); -- 2.11.4.GIT