summaryrefslogtreecommitdiff
path: root/win/Colorlst.cpp
diff options
context:
space:
mode:
authorLeo2010-07-06 03:44:13 +0000
committerLeo2010-07-06 03:44:13 +0000
commit66b3f4b8d9f1b606eb4a6e893db9f293cbeb95a3 (patch)
treebd52c975b3e21d67283606cdd2ffa1930a7a18a0 /win/Colorlst.cpp
parent8015474b3733e1b1731eec671a421a63077f3b14 (diff)
Fixes for VC8.
git-svn-id: http://svn.leocad.org/branches/leocad-0.75@953 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win/Colorlst.cpp')
-rw-r--r--win/Colorlst.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/Colorlst.cpp b/win/Colorlst.cpp
index 06eb038..e2ede84 100644
--- a/win/Colorlst.cpp
+++ b/win/Colorlst.cpp
@@ -67,7 +67,7 @@ void CColorsList::DrawItem(LPDRAWITEMSTRUCT lpDIS)
if (y == lpDIS->rcItem.top) y += x%4;
SetPixelV (lpDIS->hDC, x,y,RGB(255,255,255));
}
- for (y = lpDIS->rcItem.bottom; y > lpDIS->rcItem.top; y-=4)
+ for (int y = lpDIS->rcItem.bottom; y > lpDIS->rcItem.top; y-=4)
{
if (y == lpDIS->rcItem.bottom) y-= x%4;
SetPixelV (lpDIS->hDC, x,y,RGB(255,255,255));