summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)