Make drawing loop only depend on loop counter (#5954)

This commit is contained in:
Michał Janiszewski authored and Ted John committed 2017-07-20 18:09:22 +01:00
1 parent 2eb9657781
commit 8c9da63aa5
1 file changed
+2 -4
+2 -4
View File
@@ -713,13 +713,11 @@ void X8DrawingContext::FilterRect(FILTER_PALETTE_ID palette, sint32 left, sint32
// Fill the rectangle with the colours from the colour table
for (sint32 i = 0; i < height >> dpi->zoom_level; i++)
{
uint8 * nextdst = dst + (dpi->width >> dpi->zoom_level) + dpi->pitch;
uint8 * nextdst = dst + ((dpi->width >> dpi->zoom_level) + dpi->pitch) * i;
for (sint32 j = 0; j < (width >> dpi->zoom_level); j++)
{
*dst = g1Bits[*dst];
dst++;
*(nextdst + j) = g1Bits[*(nextdst + j)];
}
dst = nextdst;
}
}