diff options
author | Nicola Mettifogo | 2008-12-13 17:52:37 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-12-13 17:52:37 +0000 |
commit | 5b3977518401331969fe05cfd5ab01f434505ee3 (patch) | |
tree | afb5567d9ea1ec8543b2768b9997854dabeda2fd /engines/parallaction/graphics.cpp | |
parent | 800db6f142b93c07903ad6ef7c2a57bb563ff6dc (diff) | |
download | scummvm-rg350-5b3977518401331969fe05cfd5ab01f434505ee3.tar.gz scummvm-rg350-5b3977518401331969fe05cfd5ab01f434505ee3.tar.bz2 scummvm-rg350-5b3977518401331969fe05cfd5ab01f434505ee3.zip |
Some more restructuring of rendering code.
svn-id: r35343
Diffstat (limited to 'engines/parallaction/graphics.cpp')
-rw-r--r-- | engines/parallaction/graphics.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp index 674fa9b93a..0985b5b129 100644 --- a/engines/parallaction/graphics.cpp +++ b/engines/parallaction/graphics.cpp @@ -378,8 +378,6 @@ void Gfx::beginFrame() { _varDrawPathZones = 0; warning("Path zones are supported only in Big Red Adventure"); } - - _varAnimRenderMode = getRenderMode("anim_render_mode"); } int32 Gfx::getRenderMode(const char *type) { @@ -491,11 +489,10 @@ void Gfx::updateScreen() { unlockScreen(); } - _varRenderMode = _varAnimRenderMode; - + sortScene(); Graphics::Surface *surf = lockScreen(); - // draws animations frames and screen items - drawGfxObjects(*surf); + // draws animations frames and other game items + drawList(*surf, _sceneObjects); // special effects applyHalfbriteEffect_NS(*surf); @@ -803,8 +800,6 @@ Gfx::Gfx(Parallaction* vm) : registerVar("background_mode", 1); _varBackgroundMode = 1; - registerVar("anim_render_mode", 1); - registerVar("draw_path_zones", 0); if ((_gameType == GType_BRA) && (_vm->getPlatform() == Common::kPlatformPC)) { |