summaryrefslogtreecommitdiff
path: root/src/screenshot.cpp
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-05-14 15:20:50 +0000
committertruelight <truelight@openttd.org>2007-05-14 15:20:50 +0000
commitd7b4fb80d0e14ca3f8d56cda920e7f0d4e81419d (patch)
tree8b4e24cad04a15b76b5449bbb993f8b8fa1dccca /src/screenshot.cpp
parent62fe9c2e420238ba4db54f8cf56afc25b1167051 (diff)
downloadopenttd-d7b4fb80d0e14ca3f8d56cda920e7f0d4e81419d.tar.xz
(svn r9835) -Codechange: use Pixel typedef instead of byte where ever possible
Diffstat (limited to 'src/screenshot.cpp')
-rw-r--r--src/screenshot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screenshot.cpp b/src/screenshot.cpp
index c2903699b..9cbaad628 100644
--- a/src/screenshot.cpp
+++ b/src/screenshot.cpp
@@ -449,7 +449,7 @@ void SetScreenshotFormat(int i)
static void CurrentScreenCallback(void *userdata, Pixel *buf, uint y, uint pitch, uint n)
{
for (; n > 0; --n) {
- memcpy(buf, _screen.dst_ptr + y * _screen.pitch, _screen.width);
+ memcpy(buf, _screen.dst_ptr + y * _screen.pitch, _screen.width * sizeof(Pixel));
++y;
buf += pitch;
}