1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 12:33:17 +01:00

Bug fix - memset doesn't increase pointer

This commit is contained in:
ZedThree
2014-05-11 18:41:18 +02:00
parent ba6263d2bd
commit 1e8f80fa5c

View File

@@ -177,24 +177,8 @@ void gfx_fill_rect(rct_drawpixelinfo *dpi, int left, int top, int right, int bot
length = dpi->width + dpi->pitch - right_;
for (int i = 0; i < bottom_; ++i) {
uint32 ecx;
ecx = right_;
ecx = ecx / 2;
if (ecx % 2 != 0) {
*edi = col;
edi++;
}
ecx = ecx / 2;
if (ecx % 2 != 0) {
*edi = col;
edi++;
*edi = col;
edi++;
// *((uint16*)edi) = ax & 0xffff;
// edi += 2;
}
memset(edi, col, ecx*4);
edi += length;
memset(edi, col, right_);
edi += length + right_;
}
} else {
// 00678B8A 00678E38