aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/stubs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/dreamweb/stubs.cpp')
-rw-r--r--engines/dreamweb/stubs.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index a7d65845e1..4fc46ad3aa 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -4582,4 +4582,21 @@ void DreamGenContext::updateSymbolBot() {
}
}
+void DreamGenContext::showDiaryPage() {
+ showFrame(tempGraphics(), kDiaryx, kDiaryy, 0, 0);
+ data.byte(kKerning) = 1;
+ useTempCharset();
+ data.word(kCharshift) = 91+91;
+ uint16 offset = kTextstart + getSegment(data.word(kTextfile1)).word(data.byte(kDiarypage) * 2);
+ const uint8 *string = getSegment(data.word(kTextfile1)).ptr(offset, 0);
+ uint16 y = kDiaryy + 16;
+ printDirect(&string, kDiaryx + 48, &y, 240, 240 & 1);
+ printDirect(&string, kDiaryx + 129, &y, 240, 240 & 1);
+ y = kDiaryy + 23;
+ printDirect(&string, kDiaryx + 48, &y, 240, 240 & 1);
+ data.byte(kKerning) = 0;
+ data.word(kCharshift) = 0;
+ useCharset1();
+}
+
} // End of namespace DreamGen