diff options
author | Bertrand Augereau | 2011-09-07 03:58:04 +0200 |
---|---|---|
committer | Bertrand Augereau | 2011-09-07 03:58:04 +0200 |
commit | ad3b70b539173a8a036529a19904ae11bec4477c (patch) | |
tree | 0e2c20bd39dc59a5cce78f0594cd767a0f22bce7 /engines/dreamweb/stubs.cpp | |
parent | ef1eb9ba24959b16568f83b8a8a6ddf27ae40bab (diff) | |
download | scummvm-rg350-ad3b70b539173a8a036529a19904ae11bec4477c.tar.gz scummvm-rg350-ad3b70b539173a8a036529a19904ae11bec4477c.tar.bz2 scummvm-rg350-ad3b70b539173a8a036529a19904ae11bec4477c.zip |
DREAMWEB: Simpler flavour of 'printdirect' for cases when the output layout information is not needed by the client
Diffstat (limited to 'engines/dreamweb/stubs.cpp')
-rw-r--r-- | engines/dreamweb/stubs.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 034f794c29..7d4f05536d 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -1103,19 +1103,14 @@ void DreamGenContext::commandwithob(uint8 command, uint8 type, uint8 index) { uint16 commandText = kTextstart + segRef(data.word(kCommandtext)).word(command * 2); uint8 textLen = data.byte(kTextlen); { - uint16 y = data.word(kTextaddressy); const uint8 *string = segRef(data.word(kCommandtext)).ptr(commandText, 0); - printdirect(&string, data.word(kTextaddressx), &y, textLen, (bool)(textLen & 1)); + printdirect(string, data.word(kTextaddressx), data.word(kTextaddressy), textLen, (bool)(textLen & 1)); } copyname(type, index, commandLine); uint16 x = data.word(kLastxpos); if (command != 0) x += 5; - { - uint16 y = data.word(kTextaddressy); - const uint8 *string = commandLine; - printdirect(&string, x, &y, textLen, (bool)(textLen & 1)); - } + printdirect(commandLine, x, data.word(kTextaddressy), textLen, (bool)(textLen & 1)); data.byte(kNewtextline) = 1; } |