[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-patches
Subject: comctl32: Simplify MONTHCAL_PaintLeadTrailMonths.
From: Gerald Pfeifer <gerald () pfeifer ! com>
Date: 2011-03-31 18:21:25
Message-ID: E1Q5Rn8-0004Zo-DX () wine ! codeweavers ! com
[Download RAW message or body]
---
dlls/comctl32/monthcal.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c
index 58afc97..bae19f8 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);
--
1.7.4.1
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic