summaryrefslogtreecommitdiff
path: root/win/Colorlst.cpp
diff options
context:
space:
mode:
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;