Fixed const correctness of RECTANGLE_16 variable

This commit is contained in:
Armin Novak 2021-01-18 09:34:18 +01:00
parent 87e89bc719
commit 9549d090ab

View File

@ -2510,7 +2510,7 @@ int progressive_compress(PROGRESSIVE_CONTEXT* progressive, const BYTE* pSrcData,
rects = (RFX_RECT*)Stream_Buffer(progressive->rects); rects = (RFX_RECT*)Stream_Buffer(progressive->rects);
if (invalidRegion) if (invalidRegion)
{ {
RECTANGLE_16* r = region16_rects(invalidRegion, NULL); const RECTANGLE_16* r = region16_rects(invalidRegion, NULL);
for (x = 0; x < numRects; x++) for (x = 0; x < numRects; x++)
{ {
rects[x].x = r[x].left; rects[x].x = r[x].left;