improve grid drawing

This commit is contained in:
jacob1 2014-08-11 22:06:48 -04:00
parent 986b25b508
commit d4359184f2

View File

@ -1155,9 +1155,9 @@ void Renderer::render_parts()
for (ny=0; ny<YRES; ny++) for (ny=0; ny<YRES; ny++)
for (nx=0; nx<XRES; nx++) for (nx=0; nx<XRES; nx++)
{ {
if (ny%(4*gridSize)==0) if (ny%(4*gridSize) == 0)
blendpixel(nx, ny, 100, 100, 100, 80); blendpixel(nx, ny, 100, 100, 100, 80);
if (nx%(4*gridSize)==0) if (nx%(4*gridSize) == 0 && ny%(4*gridSize) != 0)
blendpixel(nx, ny, 100, 100, 100, 80); blendpixel(nx, ny, 100, 100, 100, 80);
} }
} }