summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-06-19 12:19:31 +0000
committertruelight <truelight@openttd.org>2007-06-19 12:19:31 +0000
commitb63c8b8342b03b813d7c005f48b790634995c7bf (patch)
tree79a27d4eceb0459b245c2e9df7fbd907c1b9aa0c
parenta2b14e718a1941b9d05f0eab02eb859daea9cf21 (diff)
downloadopenttd-b63c8b8342b03b813d7c005f48b790634995c7bf.tar.xz
(svn r10215) -Fix r10214: forgot 2 cases of the same mistake
-rw-r--r--src/blitter/32bpp_simple.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blitter/32bpp_simple.cpp b/src/blitter/32bpp_simple.cpp
index 3dc5ee096..5ca0ba19c 100644
--- a/src/blitter/32bpp_simple.cpp
+++ b/src/blitter/32bpp_simple.cpp
@@ -141,7 +141,7 @@ void Blitter_32bppSimple::DrawColorMappingRect(void *dst, int width, int height,
udst++;
}
udst = udst - width + _screen.pitch;
- } while (height--);
+ } while (--height);
return;
}
if (pal == PALETTE_TO_STRUCT_GREY) {
@@ -151,7 +151,7 @@ void Blitter_32bppSimple::DrawColorMappingRect(void *dst, int width, int height,
udst++;
}
udst = udst - width + _screen.pitch;
- } while (height--);
+ } while (--height);
return;
}