aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2017-06-30 16:35:33 +0200
committerThierry Crozat2018-01-22 23:42:08 +0000
commit84eb970bb9af322ce3f054206a92603cd23f29cc (patch)
treeb9a3d6f8d7bb3bfffd117fc6f3cecbc62969fcd5
parent11b62275179e6a7df5cece9581c62fb60ac81719 (diff)
downloadscummvm-rg350-84eb970bb9af322ce3f054206a92603cd23f29cc.tar.gz
scummvm-rg350-84eb970bb9af322ce3f054206a92603cd23f29cc.tar.bz2
scummvm-rg350-84eb970bb9af322ce3f054206a92603cd23f29cc.zip
SUPERNOVA: Fixes endianess issue for drawing cursor
-rw-r--r--engines/supernova/supernova.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp
index 8086753e13..e0adc7f548 100644
--- a/engines/supernova/supernova.cpp
+++ b/engines/supernova/supernova.cpp
@@ -230,11 +230,11 @@ void SupernovaEngine::initData() {
uint mask = 0x8000 >> bit;
uint bitIndex = i * 16 + bit;
- _mouseNormal[bitIndex] = (bufferNormal[i] & mask) ? kColorCursorTransparent : kColorBlack;
- if (bufferNormal[i + 16] & mask)
+ _mouseNormal[bitIndex] = (READ_LE_UINT16(bufferNormal + i) & mask) ? kColorCursorTransparent : kColorBlack;
+ if (READ_LE_UINT16(bufferNormal + i + 16) & mask)
_mouseNormal[bitIndex] = kColorLightRed;
- _mouseWait[bitIndex] = (bufferWait[i] & mask) ? kColorCursorTransparent : kColorBlack;
- if (bufferWait[i + 16] & mask)
+ _mouseWait[bitIndex] = (READ_LE_UINT16(bufferWait + i) & mask) ? kColorCursorTransparent : kColorBlack;
+ if (READ_LE_UINT16(bufferWait + i + 16) & mask)
_mouseWait[bitIndex] = kColorLightRed;
}
}