summaryrefslogtreecommitdiff
path: root/src/blitter
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
commit9ad02c11c62bec4027f36fadbab9d81180dc2721 (patch)
tree79a27d4eceb0459b245c2e9df7fbd907c1b9aa0c /src/blitter
parentb98e0ea64856b4cb4c30a87b83c498afce501aee (diff)
downloadopenttd-9ad02c11c62bec4027f36fadbab9d81180dc2721.tar.xz
(svn r10215) -Fix r10214: forgot 2 cases of the same mistake
Diffstat (limited to 'src/blitter')
-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;
}