1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +01:00

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

This commit is contained in:
Michał Janiszewski
2017-07-20 19:09:22 +02:00
committed by Ted John
parent 2eb9657781
commit 8c9da63aa5

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;
}
}