diff options
author | Oliver Kiehl | 2003-04-28 20:50:18 +0000 |
---|---|---|
committer | Oliver Kiehl | 2003-04-28 20:50:18 +0000 |
commit | 3fe290b57bc7ce5bd6fafc1a6302d8fb3b7dd92a (patch) | |
tree | 21928284dfeba3855d23e270d99a7c77a16fc73f | |
parent | 99e6ac9a3ba8dc882363104afb9e8753829d25f1 (diff) | |
download | scummvm-rg350-3fe290b57bc7ce5bd6fafc1a6302d8fb3b7dd92a.tar.gz scummvm-rg350-3fe290b57bc7ce5bd6fafc1a6302d8fb3b7dd92a.tar.bz2 scummvm-rg350-3fe290b57bc7ce5bd6fafc1a6302d8fb3b7dd92a.zip |
endian fixes
svn-id: r7188
-rw-r--r-- | sky/intro.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sky/intro.cpp b/sky/intro.cpp index 4b755d8eb6..9003fbbb76 100644 --- a/sky/intro.cpp +++ b/sky/intro.cpp @@ -442,19 +442,19 @@ void SkyState::checkCommands(uint32 *&cmdPtr) { //check for sequence commands assert (cmdPtr != NULL); - uint32 afterFrame = READ_LE_UINT32(cmdPtr); + uint32 afterFrame = *(cmdPtr); if (afterFrame >= _tseqFrames) { //do a command - uint32 command = READ_LE_UINT32(cmdPtr + 1); + uint32 command = *(cmdPtr + 1); (this->*commandRoutines[command])(cmdPtr); } } void SkyState::prepareText(uint32 *&cmdPtr) { - uint32 textNum = READ_LE_UINT32(cmdPtr + 2); + uint32 textNum = *(cmdPtr + 2); _skyText->getText(textNum, _language); _skyText->displayText(_introTextSpace, true, INTRO_TEXT_WIDTH, 255); cmdPtr += 3; @@ -462,13 +462,13 @@ void SkyState::prepareText(uint32 *&cmdPtr) { void SkyState::showIntroText(uint32 *&cmdPtr) { - uint32 xPos = READ_LE_UINT32(cmdPtr + 2); - uint32 yPos = READ_LE_UINT32(cmdPtr + 3); + uint32 xPos = *(cmdPtr + 2); + uint32 yPos = *(cmdPtr + 3); uint32 startPos = (yPos * FULL_SCREEN_WIDTH) + xPos; byte *destBuf = _introTextSpace; byte *saveBuf = _introTextSave; - uint32 width = FROM_LE_32(((struct dataFileHeader *)destBuf)->s_width); - uint32 height = FROM_LE_32(((struct dataFileHeader *)destBuf)->s_height); + uint16 width = FROM_LE_16(((struct dataFileHeader *)destBuf)->s_width); + uint16 height = FROM_LE_16(((struct dataFileHeader *)destBuf)->s_height); *(uint32 *)saveBuf = TO_LE_32(startPos); *(uint32 *)(saveBuf + 4) = TO_LE_32(height); |