aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorRobin Watts2009-08-21 22:55:19 +0000
committerRobin Watts2009-08-21 22:55:19 +0000
commita790e4953cb4f6e2a4ec95311eb292e7aaec62b4 (patch)
tree3e27e8a9948e06d3210f4fb7a43dc1a0cd609815 /engines
parentf9fe1cbbcc58b74ce34bf487648acb71b8fd34ab (diff)
downloadscummvm-rg350-a790e4953cb4f6e2a4ec95311eb292e7aaec62b4.tar.gz
scummvm-rg350-a790e4953cb4f6e2a4ec95311eb292e7aaec62b4.tar.bz2
scummvm-rg350-a790e4953cb4f6e2a4ec95311eb292e7aaec62b4.zip
Updated comments.
svn-id: r43620
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/gfx.cpp2
1 files changed, 2 insertions, 0 deletions
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);