From a2b14e718a1941b9d05f0eab02eb859daea9cf21 Mon Sep 17 00:00:00 2001 From: truelight Date: Tue, 19 Jun 2007 12:18:24 +0000 Subject: (svn r10214) -Fix: off-by-one in draw-rect-color-remapping (peter1138) --- src/blitter/8bpp_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/blitter') 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) -- cgit v1.2.3-54-g00ecf