diff options
author | Bertrand Augereau | 2011-07-21 22:46:16 +0200 |
---|---|---|
committer | Bertrand Augereau | 2011-07-23 18:23:40 +0200 |
commit | 60d4970fd091c618194684bc0030d70fc3808138 (patch) | |
tree | d7e85f5c4e9058eae30c0ba927f2f7e965bcaad0 /engines/dreamweb/stubs.cpp | |
parent | c4f9afaa023889f2f8cab2a79874aca3b6f6bba3 (diff) | |
download | scummvm-rg350-60d4970fd091c618194684bc0030d70fc3808138.tar.gz scummvm-rg350-60d4970fd091c618194684bc0030d70fc3808138.tar.bz2 scummvm-rg350-60d4970fd091c618194684bc0030d70fc3808138.zip |
DREAMWEB: 'dumptextline' ported to C++
Diffstat (limited to 'engines/dreamweb/stubs.cpp')
-rw-r--r-- | engines/dreamweb/stubs.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 9cc6098f79..3bf26c28fd 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -318,6 +318,17 @@ void DreamGenContext::printslow() { al = printslow(di, bx, dl, (bool)(dl & 1)); } +void DreamGenContext::dumptextline() { + if (data.byte(kNewtextline) != 1) + return; + data.byte(kNewtextline) = 0; + uint16 x = data.word(kTextaddressx); + uint16 y = data.word(kTextaddressy); + if (data.byte(kForeignrelease) != 0) + y -= 3; + multidump(x, y, 228, 13); +} + uint8 DreamGenContext::printslow(uint16 x, uint16 y, uint8 maxWidth, bool centered) { data.byte(kPointerframe) = 1; data.byte(kPointermode) = 3; |