diff options
author | Robert Göffringmann | 2003-06-01 00:47:57 +0000 |
---|---|---|
committer | Robert Göffringmann | 2003-06-01 00:47:57 +0000 |
commit | 557be6cbfa46eaaa956878368705056ff32a96b1 (patch) | |
tree | 45fd5eec20d361f9c0cfd3bc32e25966ef59555c | |
parent | 24b5af6a0e22c4e1f1569714d61f3be47b575112 (diff) | |
download | scummvm-rg350-557be6cbfa46eaaa956878368705056ff32a96b1.tar.gz scummvm-rg350-557be6cbfa46eaaa956878368705056ff32a96b1.tar.bz2 scummvm-rg350-557be6cbfa46eaaa956878368705056ff32a96b1.zip |
fixed screen coordinates bug for stdSpeak
svn-id: r8204
-rw-r--r-- | sky/logic.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sky/logic.cpp b/sky/logic.cpp index c9c9af43b6..b5ad755f2e 100644 --- a/sky/logic.cpp +++ b/sky/logic.cpp @@ -2078,6 +2078,7 @@ void SkyLogic::stdSpeak(Compact *target, uint32 textNum, uint32 animNum, uint32 //now form the text sprite struct lowTextManager_t textInfo; textInfo = _skyText->lowTextManager(textNum, FIXED_TEXT_WIDTH, 0, (uint8)target->extCompact->spColour, true); + Compact *textCompact = SkyState::fetchCompact(textInfo.compactNum); target->extCompact->spTextId = textInfo.compactNum; //So we know what text to kill byte *textGfx = textInfo.textData; @@ -2103,13 +2104,13 @@ void SkyLogic::stdSpeak(Compact *target, uint32 textNum, uint32 animNum, uint32 xPos -= FIXED_TEXT_WIDTH; } - _compact->xcood = xPos; + textCompact->xcood = xPos; uint16 yPos = target->ycood + ((struct dataFileHeader *)targetGfx)->s_offset_y - 6 - ((struct dataFileHeader *)textGfx)->s_height; if (yPos < TOP_LEFT_Y) yPos = TOP_LEFT_Y; - _compact->ycood = yPos; + textCompact->ycood = yPos; //_logicTalkButtonRelease = 1; } else { |