diff options
| author | Matthew Hoops | 2010-08-19 17:33:10 +0000 |
|---|---|---|
| committer | Matthew Hoops | 2010-08-19 17:33:10 +0000 |
| commit | ce9afcfab13bbbfe6ef5fe384a249a218067774a (patch) | |
| tree | 765c02e77136badcecace597022efdeeb217c33d /engines/mohawk/riven_external.cpp | |
| parent | 6dcdc72fdafe1a6ac0cd63adb1570f0dca48f469 (diff) | |
| download | scummvm-rg350-ce9afcfab13bbbfe6ef5fe384a249a218067774a.tar.gz scummvm-rg350-ce9afcfab13bbbfe6ef5fe384a249a218067774a.tar.bz2 scummvm-rg350-ce9afcfab13bbbfe6ef5fe384a249a218067774a.zip | |
MOHAWK: Draw in the telescope combination in Catherine's journal
svn-id: r52215
Diffstat (limited to 'engines/mohawk/riven_external.cpp')
| -rw-r--r-- | engines/mohawk/riven_external.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/engines/mohawk/riven_external.cpp b/engines/mohawk/riven_external.cpp index 67d621a54c..4813ad5b33 100644 --- a/engines/mohawk/riven_external.cpp +++ b/engines/mohawk/riven_external.cpp @@ -340,7 +340,21 @@ void RivenExternal::xacathopenbook(uint16 argc, uint16 *argv) { _vm->_gfx->drawPLST(51); if (page == 28) { - // TODO: Draw telescope combination + // Draw the telescope combination + // The images for the numbers are tBMP's 13 through 17. + // The start point is at (156, 247) + uint32 teleCombo = *_vm->matchVarToString("tcorrectorder"); + static const uint16 kNumberWidth = 32; + static const uint16 kNumberHeight = 25; + static const uint16 kDstX = 156; + static const uint16 kDstY = 247; + + for (byte i = 0; i < 5; i++) { + uint16 offset = (getComboDigit(teleCombo, i) - 1) * kNumberWidth; + Common::Rect srcRect = Common::Rect(offset, 0, offset + kNumberWidth, kNumberHeight); + Common::Rect dstRect = Common::Rect(i * kNumberWidth + kDstX, kDstY, (i + 1) * kNumberWidth + kDstX, kDstY + kNumberHeight); + _vm->_gfx->drawImageRect(i + 13, srcRect, dstRect); + } } } |
