(svn r10214) -Fix: off-by-one in draw-rect-color-remapping (peter1138)
authortruelight
Tue, 19 Jun 2007 12:18:24 +0000
changeset 7454 f86ba05c4969
parent 7453 67ba4a6fc014
child 7455 d6f39d44664b
(svn r10214) -Fix: off-by-one in draw-rect-color-remapping (peter1138)
src/blitter/8bpp_base.cpp
--- a/src/blitter/8bpp_base.cpp	Tue Jun 19 00:05:26 2007 +0000
+++ b/src/blitter/8bpp_base.cpp	Tue Jun 19 12:18:24 2007 +0000
@@ -9,7 +9,7 @@
 	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)