From a790e4953cb4f6e2a4ec95311eb292e7aaec62b4 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 21 Aug 2009 22:55:19 +0000 Subject: Updated comments. svn-id: r43620 --- engines/scumm/gfx.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/scumm') diff --git a/engines/scumm/gfx.cpp b/engines/scumm/gfx.cpp index c6e2cd3312..ba49131ac5 100644 --- a/engines/scumm/gfx.cpp +++ b/engines/scumm/gfx.cpp @@ -784,6 +784,8 @@ void ditherHerc(byte *src, byte *hercbuf, int srcPitch, int *x, int *y, int *wid } void scale2x(byte *dst, int dstPitch, const byte *src, int srcPitch, int w, int h) { + /* dst and dstPitch should both be even. So the use of (void *) in + * the following casts to avoid the unnecessary warning is valid. */ uint16 *dstL1 = (uint16 *)(void *)dst; uint16 *dstL2 = (uint16 *)(void *)(dst + dstPitch); -- cgit v1.2.3