diff options
author | truelight <truelight@openttd.org> | 2007-06-19 12:18:24 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-06-19 12:18:24 +0000 |
commit | b98e0ea64856b4cb4c30a87b83c498afce501aee (patch) | |
tree | 9655b73b435e6dbe8c9586359969dc01b1e8a3e3 /src | |
parent | 16ce2192e45cbc4d2ba01267578ea5c3943caf0f (diff) | |
download | openttd-b98e0ea64856b4cb4c30a87b83c498afce501aee.tar.xz |
(svn r10214) -Fix: off-by-one in draw-rect-color-remapping (peter1138)
Diffstat (limited to 'src')
-rw-r--r-- | src/blitter/8bpp_base.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blitter/8bpp_base.cpp b/src/blitter/8bpp_base.cpp index 0a2ca6b52..42da38937 100644 --- a/src/blitter/8bpp_base.cpp +++ b/src/blitter/8bpp_base.cpp @@ -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) |