diff options
author | Bertrand Augereau | 2011-11-18 06:30:12 +0100 |
---|---|---|
committer | Bertrand Augereau | 2011-11-18 06:30:12 +0100 |
commit | 46a6b30a27106afcf9ddb66edda179c2f6546bb7 (patch) | |
tree | 8a312c6a8e32c849349ab856b37b13b308cc7554 /engines/dreamweb/stubs.cpp | |
parent | 5461b03983a58ba63b2a86cc6042d9a99cb771f4 (diff) | |
download | scummvm-rg350-46a6b30a27106afcf9ddb66edda179c2f6546bb7.tar.gz scummvm-rg350-46a6b30a27106afcf9ddb66edda179c2f6546bb7.tar.bz2 scummvm-rg350-46a6b30a27106afcf9ddb66edda179c2f6546bb7.zip |
DREAMWEB: Wrapped kTextunder buffer in an accessor
Diffstat (limited to 'engines/dreamweb/stubs.cpp')
-rw-r--r-- | engines/dreamweb/stubs.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index f8f3be9d01..e0075da174 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -208,6 +208,10 @@ static Common::String getFilename(Context &context) { return Common::String(name); } +uint8 *DreamGenContext::textUnder() { + return segRef(data.word(kBuffers)).ptr(kTextunder, 0); +} + uint16 DreamGenContext::standardload(const char *fileName) { engine->openFile(fileName); engine->readFromFile(cs.ptr(kFileheader, kHeaderlen), kHeaderlen); @@ -263,7 +267,7 @@ void DreamGenContext::printcurs() { height = 11; } else height = 8; - multiget(segRef(data.word(kBuffers)).ptr(kTextunder, 0), x, y, 6, height); + multiget(textUnder(), x, y, 6, height); ++data.word(kMaintimer); if ((data.word(kMaintimer) & 16) == 0) showframe((Frame *)segRef(data.word(kTempcharset)).ptr(0, 0), x, y, '/' - 32, 0); @@ -280,7 +284,7 @@ void DreamGenContext::delcurs() { height = 11; } else height = 8; - multiput(segRef(data.word(kBuffers)).ptr(kTextunder, 0), x, y, width, height); + multiput(textUnder(), x, y, width, height); multidump(x, y, width, height); } @@ -1032,7 +1036,7 @@ void DreamGenContext::deltextline() { uint16 y = data.word(kTextaddressy); if (data.byte(kForeignrelease) != 0) y -= 3; - multiput(segRef(data.word(kBuffers)).ptr(kTextunder, 0), x, y, kUndertextsizex, kUndertextsizey); + multiput(textUnder(), x, y, kUndertextsizex, kUndertextsizey); } void DreamGenContext::commandonly() { |