aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/vgagrafx.cpp
diff options
context:
space:
mode:
authorBertrand Augereau2011-11-21 21:32:50 +0100
committerBertrand Augereau2011-11-21 21:53:20 +0100
commit51c30303a894c0630e3950a7e2168316780dcc76 (patch)
treea1cfd5e3013675d9f7c1fc9f5ddb0147b901ac16 /engines/dreamweb/vgagrafx.cpp
parent397761c2c14f3d08f009c6487f7b49db9d05e13c (diff)
downloadscummvm-rg350-51c30303a894c0630e3950a7e2168316780dcc76.tar.gz
scummvm-rg350-51c30303a894c0630e3950a7e2168316780dcc76.tar.bz2
scummvm-rg350-51c30303a894c0630e3950a7e2168316780dcc76.zip
DREAMWEB: 'createpanel' and 'createpanel2' ported to C++
Diffstat (limited to 'engines/dreamweb/vgagrafx.cpp')
-rw-r--r--engines/dreamweb/vgagrafx.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/dreamweb/vgagrafx.cpp b/engines/dreamweb/vgagrafx.cpp
index 9871b5e998..658f45ed04 100644
--- a/engines/dreamweb/vgagrafx.cpp
+++ b/engines/dreamweb/vgagrafx.cpp
@@ -492,5 +492,20 @@ void DreamGenContext::loadpalfromiff() {
}
}
+void DreamGenContext::createpanel() {
+ Frame *icons = (Frame *)segRef(data.word(kIcons2)).ptr(0, 0);
+ showframe(icons, 0, 8, 0, 2);
+ showframe(icons, 160, 8, 0, 2);
+ showframe(icons, 0, 104, 0, 2);
+ showframe(icons, 160, 104, 0, 2);
+}
+
+void DreamGenContext::createpanel2() {
+ createpanel();
+ Frame *icons = (Frame *)segRef(data.word(kIcons2)).ptr(0, 0);
+ showframe(icons, 0, 0, 5, 2);
+ showframe(icons, 160, 0, 5, 2);
+}
+
} /*namespace dreamgen */