diff options
author | Bertrand Augereau | 2011-11-18 17:38:19 +0100 |
---|---|---|
committer | Bertrand Augereau | 2011-11-18 17:38:19 +0100 |
commit | a09a39794cb4b9d0ca59b588a09e4dbcd1d6a5ad (patch) | |
tree | f84304dc84dfc395dd7879f7d81c882b2be76b56 /engines/dreamweb/monitor.cpp | |
parent | 29ff93e2577d68084ef95f481ee1cd370cf287f5 (diff) | |
download | scummvm-rg350-a09a39794cb4b9d0ca59b588a09e4dbcd1d6a5ad.tar.gz scummvm-rg350-a09a39794cb4b9d0ca59b588a09e4dbcd1d6a5ad.tar.bz2 scummvm-rg350-a09a39794cb4b9d0ca59b588a09e4dbcd1d6a5ad.zip |
DREAMWEB: 'showcurrentfile' ported to C++
NB: This commit doesn't change the (wrong) layout of the file text
Diffstat (limited to 'engines/dreamweb/monitor.cpp')
-rw-r--r-- | engines/dreamweb/monitor.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/dreamweb/monitor.cpp b/engines/dreamweb/monitor.cpp index 530acc19a9..41df8c490b 100644 --- a/engines/dreamweb/monitor.cpp +++ b/engines/dreamweb/monitor.cpp @@ -201,5 +201,15 @@ void DreamGenContext::scrollmonitor() { bx = pop(); } +void DreamGenContext::showcurrentfile() { + uint16 x = 178; + const char *currentFile = (const char *)cs.ptr(kCurrentfile+1, 0); + while (*currentFile) { + char c = *currentFile++; + c = engine->modifyChar(c); + printchar((const Frame *)segRef(data.word(kTempcharset)).ptr(0, 0), &x, 37, c, 0, NULL, NULL); + } +} + } /*namespace dreamgen */ |