summaryrefslogtreecommitdiff
path: root/src/blitter
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-06-19 12:18:24 +0000
committertruelight <truelight@openttd.org>2007-06-19 12:18:24 +0000
commitb98e0ea64856b4cb4c30a87b83c498afce501aee (patch)
tree9655b73b435e6dbe8c9586359969dc01b1e8a3e3 /src/blitter
parent16ce2192e45cbc4d2ba01267578ea5c3943caf0f (diff)
downloadopenttd-b98e0ea64856b4cb4c30a87b83c498afce501aee.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.cpp2
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)