(svn r10214) -Fix: off-by-one in draw-rect-color-remapping (peter1138)
authortruelight
Tue, 19 Jun 2007 12:18:24 +0000
changeset 6958 71b3acffa5d6
parent 6957 a9af2426bf77
child 6959 8c5ef1825831
(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)