aboutsummaryrefslogtreecommitdiff
path: root/scumm/gfx.cpp
diff options
context:
space:
mode:
authorMax Horn2005-04-28 22:34:56 +0000
committerMax Horn2005-04-28 22:34:56 +0000
commitd03b09265902a5a8c915fb515e1fef259c9fb618 (patch)
treeaf96136d0693c4a7ebcc90294555c3b52d9bcc7a /scumm/gfx.cpp
parentc5127d3c05ec1dccb8ead61d38727e3e98dce6d1 (diff)
downloadscummvm-rg350-d03b09265902a5a8c915fb515e1fef259c9fb618.tar.gz
scummvm-rg350-d03b09265902a5a8c915fb515e1fef259c9fb618.tar.bz2
scummvm-rg350-d03b09265902a5a8c915fb515e1fef259c9fb618.zip
Moved blast text/object code to ScummEngine_v6
svn-id: r17856
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r--scumm/gfx.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index 7be3e3bbd1..46e94b626d 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -444,6 +444,29 @@ void ScummEngine::drawDirtyScreenParts() {
}
}
+void ScummEngine_v6::drawDirtyScreenParts() {
+ // For the Full Throttle credits to work properly, the blast
+ // texts have to be drawn before the blast objects. Unless
+ // someone can think of a better way to achieve this effect.
+
+ if (_version >= 7 && VAR(VAR_BLAST_ABOVE_TEXT) == 1) {
+ drawBlastTexts();
+ drawBlastObjects();
+ } else {
+ drawBlastObjects();
+ drawBlastTexts();
+ }
+ if (_version == 8)
+ processUpperActors();
+
+ // Call the original method.
+ ScummEngine::drawDirtyScreenParts();
+
+ // Remove all blasted objects/text again.
+ removeBlastTexts();
+ removeBlastObjects();
+}
+
/**
* Blit the dirty data from the given VirtScreen to the display. If the camera moved,
* a full blit is done, otherwise only the visible dirty areas are updated.