(svn r9835) -Codechange: use Pixel typedef instead of byte where ever possible

This commit is contained in:
truelight
2007-05-14 15:20:50 +00:00
parent f739aedf5b
commit 5f0e384ac0
6 changed files with 15 additions and 15 deletions

View File

@@ -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;
}