aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2014-12-26 22:48:58 +0200
committerFilippos Karapetis2014-12-26 22:48:58 +0200
commit85142cd0d7fb6e24fc45b2c61611f848b8c4a102 (patch)
tree323d34efbd4b94b4812bdd5db9a6d06cc69c1097
parenta9701d04c17b6f565e5602f12546bfe7aa2848af (diff)
downloadscummvm-rg350-85142cd0d7fb6e24fc45b2c61611f848b8c4a102.tar.gz
scummvm-rg350-85142cd0d7fb6e24fc45b2c61611f848b8c4a102.tar.bz2
scummvm-rg350-85142cd0d7fb6e24fc45b2c61611f848b8c4a102.zip
ZVISION: Remove duplicate subtitle code
-rw-r--r--engines/zvision/graphics/render_manager.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/engines/zvision/graphics/render_manager.cpp b/engines/zvision/graphics/render_manager.cpp
index 73483f2309..4f7b16c833 100644
--- a/engines/zvision/graphics/render_manager.cpp
+++ b/engines/zvision/graphics/render_manager.cpp
@@ -698,18 +698,9 @@ uint16 RenderManager::createSubArea(const Common::Rect &area) {
}
uint16 RenderManager::createSubArea() {
- _subid++;
-
- OneSubtitle sub;
- sub.redraw = false;
- sub.timer = -1;
- sub.todelete = false;
- sub.r = Common::Rect(_subtitleArea.left, _subtitleArea.top, _subtitleArea.right, _subtitleArea.bottom);
- sub.r.translate(-_workingWindow.left, -_workingWindow.top);
-
- _subsList[_subid] = sub;
-
- return _subid;
+ Common::Rect r(_subtitleArea.left, _subtitleArea.top, _subtitleArea.right, _subtitleArea.bottom);
+ r.translate(-_workingWindow.left, -_workingWindow.top);
+ return createSubArea(r);
}
void RenderManager::deleteSubArea(uint16 id) {