aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2012-10-28 22:10:14 +1100
committerPaul Gilbert2012-10-28 22:10:14 +1100
commit58ac9c83ec4ecbaa724eab80ac72e62ec35955c1 (patch)
tree660aeead44b93accb487fe6b6970579ba5806c9e
parent1faeb6e136ff9fddd16340c072122f75c8fff29a (diff)
downloadscummvm-rg350-58ac9c83ec4ecbaa724eab80ac72e62ec35955c1.tar.gz
scummvm-rg350-58ac9c83ec4ecbaa724eab80ac72e62ec35955c1.tar.bz2
scummvm-rg350-58ac9c83ec4ecbaa724eab80ac72e62ec35955c1.zip
HOPKINS: Fixed the type casting in copy video methods
-rw-r--r--engines/hopkins/graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/hopkins/graphics.cpp b/engines/hopkins/graphics.cpp
index ae26c40209..ea1d44f442 100644
--- a/engines/hopkins/graphics.cpp
+++ b/engines/hopkins/graphics.cpp
@@ -2420,7 +2420,7 @@ void GraphicsManager::Copy_WinScan_Vbe(const byte *src, byte *dest) {
byteVal = *(srcPtr + 2);
srcPtr += 2;
} else if (byteVal == (byte)-2) {
- destOffset += (int16)READ_LE_UINT16(srcPtr + 1);
+ destOffset += READ_LE_UINT16(srcPtr + 1);
byteVal = *(srcPtr + 3);
srcPtr += 3;
} else {
@@ -2454,7 +2454,7 @@ void GraphicsManager::Copy_Video_Vbe(const byte *src) {
byteVal = *(srcP + 2);
srcP += 2;
} else if (byteVal == (byte)-2) {
- destOffset += (int16)READ_LE_UINT16(srcP + 1);
+ destOffset += READ_LE_UINT16(srcP + 1);
byteVal = *(srcP + 3);
srcP += 3;
} else {