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 | a2b14e718a1941b9d05f0eab02eb859daea9cf21 (patch) | |
tree | 9655b73b435e6dbe8c9586359969dc01b1e8a3e3 /src/blitter | |
parent | f765b3d6aa70eae559d02cda947e6ff5e18b8c1a (diff) | |
download | openttd-a2b14e718a1941b9d05f0eab02eb859daea9cf21.tar.xz |
(svn r10214) -Fix: off-by-one in draw-rect-color-remapping (peter1138)
Diffstat (limited to 'src/blitter')
-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) |