summaryrefslogtreecommitdiff
path: root/win/Clrpick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'win/Clrpick.cpp')
-rw-r--r--win/Clrpick.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/win/Clrpick.cpp b/win/Clrpick.cpp
index 1d920fa..7b5ddae 100644
--- a/win/Clrpick.cpp
+++ b/win/Clrpick.cpp
@@ -142,7 +142,9 @@ void CColorPicker::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)
{
for (int x = rect.left; x < rect.right; x++)
{
- for (int y = rect.top; y < rect.bottom; y+=4)
+ int y;
+
+ for (y = rect.top; y < rect.bottom; y+=4)
{
if (y == rect.top) y += x%4;
pDC->SetPixel (x,y,RGB(255,255,255));