aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/graphics
diff options
context:
space:
mode:
authorMarisa-Chan2014-07-12 19:09:08 +0000
committerMarisa-Chan2014-07-12 19:09:08 +0000
commitb9103b8d19a5da396d217e8d9bcc5c1502b89837 (patch)
tree016f1a0c90e7809445b6889f483deb495ced7209 /engines/zvision/graphics
parentbbaebdf680179dca103b0ed635e791aa602d610d (diff)
downloadscummvm-rg350-b9103b8d19a5da396d217e8d9bcc5c1502b89837.tar.gz
scummvm-rg350-b9103b8d19a5da396d217e8d9bcc5c1502b89837.tar.bz2
scummvm-rg350-b9103b8d19a5da396d217e8d9bcc5c1502b89837.zip
ZVISION: Implement functions for system messaging.
Diffstat (limited to 'engines/zvision/graphics')
-rw-r--r--engines/zvision/graphics/render_manager.cpp15
-rw-r--r--engines/zvision/graphics/render_manager.h1
2 files changed, 16 insertions, 0 deletions
diff --git a/engines/zvision/graphics/render_manager.cpp b/engines/zvision/graphics/render_manager.cpp
index f3b01b7e30..c89444df13 100644
--- a/engines/zvision/graphics/render_manager.cpp
+++ b/engines/zvision/graphics/render_manager.cpp
@@ -729,6 +729,21 @@ uint16 RenderManager::createSubArea(const Common::Rect &area) {
return _subid;
}
+uint16 RenderManager::createSubArea() {
+ _subid++;
+
+ oneSub sub;
+ sub.redraw = false;
+ sub.timer = -1;
+ sub.todelete = false;
+ sub._r = Common::Rect(_subWndRect.left, _subWndRect.top, _subWndRect.right, _subWndRect.bottom);
+ sub._r.translate(-_workingWindow.left, -_workingWindow.top);
+
+ _subsList[_subid] = sub;
+
+ return _subid;
+}
+
void RenderManager::deleteSubArea(uint16 id) {
if (_subsList.contains(id))
_subsList[id].todelete = true;
diff --git a/engines/zvision/graphics/render_manager.h b/engines/zvision/graphics/render_manager.h
index ca2e715e8a..b4c6c76a6e 100644
--- a/engines/zvision/graphics/render_manager.h
+++ b/engines/zvision/graphics/render_manager.h
@@ -233,6 +233,7 @@ public:
void blitSurfaceToMenu(const Graphics::Surface &src, int x, int y, uint32 colorkey);
uint16 createSubArea(const Common::Rect &area);
+ uint16 createSubArea();
void deleteSubArea(uint16 id);
void deleteSubArea(uint16 id, int16 delay);
void updateSubArea(uint16 id, const Common::String &txt);