aboutsummaryrefslogtreecommitdiff
path: root/engines/tony/gfxcore.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2012-05-05 09:31:21 +1000
committerPaul Gilbert2012-05-05 09:31:21 +1000
commit657d93ea8f5e123024c4618b8a3dc441a9f45cbc (patch)
tree0a7d48af80a0b1f36635064a793133699839220d /engines/tony/gfxcore.cpp
parent3454a0a9c3738b09ac8de417297cb1f8adb0d2da (diff)
downloadscummvm-rg350-657d93ea8f5e123024c4618b8a3dc441a9f45cbc.tar.gz
scummvm-rg350-657d93ea8f5e123024c4618b8a3dc441a9f45cbc.tar.bz2
scummvm-rg350-657d93ea8f5e123024c4618b8a3dc441a9f45cbc.zip
TONY: Fix some Valgrind identified warnings
Diffstat (limited to 'engines/tony/gfxcore.cpp')
-rw-r--r--engines/tony/gfxcore.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tony/gfxcore.cpp b/engines/tony/gfxcore.cpp
index 9f725f2523..5737a6af45 100644
--- a/engines/tony/gfxcore.cpp
+++ b/engines/tony/gfxcore.cpp
@@ -1832,7 +1832,7 @@ RMGfxSourceBuffer16::~RMGfxSourceBuffer16() {
}
void RMGfxSourceBuffer16::Draw(RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim) {
- int x,y;
+ int x, y;
uint16 *buf = bigBuf;
uint16 *raw = (uint16*)m_buf;
int dimx, dimy;
@@ -1881,7 +1881,7 @@ void RMGfxSourceBuffer16::Draw(RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim)
}
} else {
for (y = 0; y < dimy; y++) {
- CopyMemory(buf, raw, dimx * 2);
+ Common::copy(raw, raw + dimx, buf);
buf += bigBuf.Dimx();
raw += m_dimx;
}