diff options
author | Bertrand Augereau | 2011-11-16 21:00:46 +0100 |
---|---|---|
committer | Bertrand Augereau | 2011-11-16 21:16:13 +0100 |
commit | aa3ab32f52fb0060285d12bb99e7ef733df8582a (patch) | |
tree | 80d680d63e45f83175ec5469efc89c5e3c791116 /engines/dreamweb | |
parent | 7c2145f67c355f18e309b342f27ad8e62d475ac5 (diff) | |
download | scummvm-rg350-aa3ab32f52fb0060285d12bb99e7ef733df8582a.tar.gz scummvm-rg350-aa3ab32f52fb0060285d12bb99e7ef733df8582a.tar.bz2 scummvm-rg350-aa3ab32f52fb0060285d12bb99e7ef733df8582a.zip |
DREAMWEB: 'zoomicon' ported to C++
Diffstat (limited to 'engines/dreamweb')
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 14 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.h | 3 | ||||
-rw-r--r-- | engines/dreamweb/stubs.cpp | 6 | ||||
-rw-r--r-- | engines/dreamweb/stubs.h | 2 |
4 files changed, 8 insertions, 17 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index 35f0f633a6..474da2b030 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -14299,19 +14299,6 @@ zoomisoff: showwatch(); } -void DreamGenContext::zoomicon() { - STACK_CHECK; - _cmp(data.byte(kZoomon), 0); - if (flags.z()) - return /* (nozoom1) */; - ds = data.word(kIcons1); - di = (8); - bx = (132)-1; - al = 8; - ah = 0; - showframe(); -} - void DreamGenContext::worktoscreenm() { STACK_CHECK; animpointer(); @@ -16509,7 +16496,6 @@ void DreamGenContext::__dispatch_call(uint16 addr) { case addr_showexit: showexit(); break; case addr_panelicons1: panelicons1(); break; case addr_gettime: gettime(); break; - case addr_zoomicon: zoomicon(); break; case addr_worktoscreenm: worktoscreenm(); break; case addr_blank: blank(); break; case addr_allpointer: allpointer(); break; diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h index 94299c7f9a..0dcc69ff08 100644 --- a/engines/dreamweb/dreamgen.h +++ b/engines/dreamweb/dreamgen.h @@ -87,7 +87,6 @@ public: static const uint16 addr_allpointer = 0xcaa4; static const uint16 addr_blank = 0xcaa0; static const uint16 addr_worktoscreenm = 0xca9c; - static const uint16 addr_zoomicon = 0xca90; static const uint16 addr_gettime = 0xca8c; static const uint16 addr_panelicons1 = 0xca84; static const uint16 addr_showexit = 0xca80; @@ -1787,7 +1786,7 @@ public: void restorereels(); void setwalk(); //void useroutine(); - void zoomicon(); + //void zoomicon(); //void findlen(); void findpathofpoint(); void issetobonmap(); diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 338e8da158..d25d11e1f3 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -1990,5 +1990,11 @@ void DreamGenContext::roomname() { usecharset1(); } +void DreamGenContext::zoomicon() { + if (data.byte(kZoomon) == 0) + return; + showframe((Frame *)segRef(data.word(kIcons1)).ptr(0, 0), kZoomx, kZoomy-1, 8, 0); +} + } /*namespace dreamgen */ diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h index 3170be9996..f0d8f4014a 100644 --- a/engines/dreamweb/stubs.h +++ b/engines/dreamweb/stubs.h @@ -266,5 +266,5 @@ void paltoendpal(); void fadecalculation(); void watchcount(); - + void zoomicon(); |