aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/dreamgen.cpp
diff options
context:
space:
mode:
authorMax Horn2011-12-16 17:20:53 +0100
committerMax Horn2011-12-16 17:44:59 +0100
commit8cb92c2367da5a16f4d7ffb68adea9f1bdfd13e8 (patch)
tree989e5befb3226f7bcf76ee0bf838b53866a8775f /engines/dreamweb/dreamgen.cpp
parent010714ce5bf401f3d91e8d410c447b866646c85f (diff)
downloadscummvm-rg350-8cb92c2367da5a16f4d7ffb68adea9f1bdfd13e8.tar.gz
scummvm-rg350-8cb92c2367da5a16f4d7ffb68adea9f1bdfd13e8.tar.bz2
scummvm-rg350-8cb92c2367da5a16f4d7ffb68adea9f1bdfd13e8.zip
DREAMWEB: Convert fadeScreenDownHalf to C++
Diffstat (limited to 'engines/dreamweb/dreamgen.cpp')
-rw-r--r--engines/dreamweb/dreamgen.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index 906ce3adc3..ea731fcb21 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -285,36 +285,6 @@ void DreamGenContext::transferMap() {
_add(data.word(kExframepos), cx);
}
-void DreamGenContext::fadeScreenDownHalf() {
- STACK_CHECK;
- palToStartPal();
- palToEndPal();
- cx = 768;
- es = data.word(kBuffers);
- bx = (0+(228*13)+32+60+(32*32)+(11*10*3)+768);
-halfend:
- al = es.byte(bx);
- _shr(al, 1);
- es.byte(bx) = al;
- _inc(bx);
- if (--cx)
- goto halfend;
- ds = data.word(kBuffers);
- es = data.word(kBuffers);
- si = (0+(228*13)+32+60+(32*32)+(11*10*3))+(56*3);
- di = (0+(228*13)+32+60+(32*32)+(11*10*3)+768)+(56*3);
- cx = 3*5;
- _movsb(cx, true);
- si = (0+(228*13)+32+60+(32*32)+(11*10*3))+(77*3);
- di = (0+(228*13)+32+60+(32*32)+(11*10*3)+768)+(77*3);
- cx = 3*2;
- _movsb(cx, true);
- data.byte(kFadedirection) = 1;
- data.byte(kFadecount) = 31;
- data.byte(kColourpos) = 0;
- data.byte(kNumtofade) = 32;
-}
-
void DreamGenContext::rollEm() {
STACK_CHECK;
cl = 160;