diff options
author | Bertrand Augereau | 2011-08-11 12:26:30 +0200 |
---|---|---|
committer | Bertrand Augereau | 2011-08-11 12:26:30 +0200 |
commit | b6a8e2e98cb59f4edc3c6e9441b894dd1237a745 (patch) | |
tree | f0dd25e26b5e256a9844b2a979be61d6d563bbe4 | |
parent | d5a184e2f058f89fa4b5297078ca8fd035c4a6a7 (diff) | |
download | scummvm-rg350-b6a8e2e98cb59f4edc3c6e9441b894dd1237a745.tar.gz scummvm-rg350-b6a8e2e98cb59f4edc3c6e9441b894dd1237a745.tar.bz2 scummvm-rg350-b6a8e2e98cb59f4edc3c6e9441b894dd1237a745.zip |
DREAMWEB: Misc cleanings in stubs.cpp
-rw-r--r-- | engines/dreamweb/stubs.cpp | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 70d4364031..41f834b3d5 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -623,10 +623,7 @@ void DreamGenContext::getroomspaths() { } uint8 *DreamGenContext::getroomspathsCPP() { - push(es); - es = data.word(kReels); - void *result = es.ptr(data.byte(kRoomnum) * 144, 144); - es = pop(); + void *result = segRef(data.word(kReels)).ptr(data.byte(kRoomnum) * 144, 144); return (uint8 *)result; } @@ -845,13 +842,12 @@ void DreamGenContext::plotreel() { if (al == 255) break; dealwithspecial(); - _inc(data.word(kReelpointer)); + ++data.word(kReelpointer); reel += 8; } for (size_t i = 0; i < 8; ++i) { - ax = reel->frame(); - if (ax != 0xffff) + if (reel->frame() != 0xffff) showreelframe(reel); ++reel; } @@ -865,10 +861,7 @@ void DreamGenContext::crosshair() { } else { frame = 29; } - push(ds); - ds = data.word(kIcons1); - Frame *src = (Frame *)ds.ptr(0, 0); - ds = pop(); + const Frame *src = (const Frame *)segRef(data.word(kIcons1)).ptr(0, 0); uint8 width, height; showframe(src, kZoomx + 24, kZoomy + 19, frame, 0, &width, &height); } @@ -878,9 +871,7 @@ void DreamGenContext::deltextline() { uint16 y = data.word(kTextaddressy); if (data.byte(kForeignrelease) != 0) y -= 3; - ds = data.word(kBuffers); - si = kTextunder; - multiput(ds.ptr(si, 0), x, y, kUndertextsizex, kUndertextsizey); + multiput(segRef(data.word(kBuffers)).ptr(kTextunder, 0), x, y, kUndertextsizex, kUndertextsizey); } void DreamGenContext::autosetwalk() { |