From 51c30303a894c0630e3950a7e2168316780dcc76 Mon Sep 17 00:00:00 2001 From: Bertrand Augereau Date: Mon, 21 Nov 2011 21:32:50 +0100 Subject: DREAMWEB: 'createpanel' and 'createpanel2' ported to C++ --- engines/dreamweb/vgagrafx.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'engines/dreamweb/vgagrafx.cpp') 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 */ -- cgit v1.2.3