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