Quote:
Originally posted by bytz
In your square drawing code (besides thte advice that Mathew gave you) you're continually recalculating the x & y's for the rect. You should move the y calculation to the outer loop as it will be the same for each j:
[CODE]
//
//Draw the squares
//
CRect rect;
rect.top = -10;
rect.bottom = -20;
for(int i = 0 ; i < 500 ; i ++)
{
rect.left = 10;
rect.right = 20;
for(int j = 0 ; j < 750 ; j ++)
{
COLORREF color = pDoc->GetSquareColor(i, j);
pDC->FillSolidRect(rect, color);
rect.left += 10;
rect.right += 10;
}
rect.top -= 10;
rect.bottom -= 20;
}
[\CODE]
Note: I did not compile this code!!!
i didnt understand the above..i duno how to take it off my codes....:(:(