summaryrefslogtreecommitdiff
path: root/win/Clrpopup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'win/Clrpopup.cpp')
-rw-r--r--win/Clrpopup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/Clrpopup.cpp b/win/Clrpopup.cpp
index aa3daa9..2c3b563 100644
--- a/win/Clrpopup.cpp
+++ b/win/Clrpopup.cpp
@@ -788,7 +788,7 @@ void CColorPopup::DrawCell(CDC* pDC, int nIndex)
if (y == rect.top) y += x%4;
pDC->SetPixel (x,y,RGB(255,255,255));
}
- for (y = rect.bottom; y > rect.top; y-=4)
+ for (int y = rect.bottom; y > rect.top; y-=4)
{
if (y == rect.bottom) y-= x%4;
pDC->SetPixel (x,y,RGB(255,255,255));