summaryrefslogtreecommitdiff
path: root/win/Colorlst.cpp
diff options
context:
space:
mode:
authorLeo2009-02-22 03:39:40 +0000
committerLeo2009-02-22 03:39:40 +0000
commit27815f2cce37721ae1c524669c3e19cff8a50894 (patch)
tree87d40bc85de59359864bd9048f8b67b1d8ee9c9f /win/Colorlst.cpp
parenta8ad39466b19601b4284c2f4e6afa68eccb91b62 (diff)
Fixes for VS 2005.
git-svn-id: http://svn.leocad.org/tags/leocad-0.75@741 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win/Colorlst.cpp')
-rw-r--r--win/Colorlst.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/win/Colorlst.cpp b/win/Colorlst.cpp
index 06eb038..b335247 100644
--- a/win/Colorlst.cpp
+++ b/win/Colorlst.cpp
@@ -62,11 +62,14 @@ void CColorsList::DrawItem(LPDRAWITEMSTRUCT lpDIS)
if (x > 13 && x < 22)
for (x = lpDIS->rcItem.left; x < lpDIS->rcItem.right; x++)
{
- for (int y = lpDIS->rcItem.top; y < lpDIS->rcItem.bottom; y+=4)
+ int y;
+
+ for (y = lpDIS->rcItem.top; y < lpDIS->rcItem.bottom; y+=4)
{
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)
{
if (y == lpDIS->rcItem.bottom) y-= x%4;