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:
20
src/gfx.c
20
src/gfx.c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user