From d7b4fb80d0e14ca3f8d56cda920e7f0d4e81419d Mon Sep 17 00:00:00 2001 From: truelight Date: Mon, 14 May 2007 15:20:50 +0000 Subject: (svn r9835) -Codechange: use Pixel typedef instead of byte where ever possible --- src/screenshot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/screenshot.cpp') 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; } -- cgit v1.2.3-54-g00ecf