mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 05:15:21 +00:00
(svn r10214) -Fix: off-by-one in draw-rect-color-remapping (peter1138)
This commit is contained in:
parent
16ce2192e4
commit
b98e0ea648
@ -9,7 +9,7 @@ void Blitter_8bppBase::DrawColorMappingRect(void *dst, int width, int height, in
|
||||
do {
|
||||
for (int i = 0; i != width; i++) *((uint8 *)dst + i) = ctab[((uint8 *)dst)[i]];
|
||||
dst = (uint8 *)dst + _screen.pitch;
|
||||
} while (height--);
|
||||
} while (--height);
|
||||
}
|
||||
|
||||
void *Blitter_8bppBase::MoveTo(const void *video, int x, int y)
|
||||
|
Loading…
Reference in New Issue
Block a user