aboutsummaryrefslogtreecommitdiff
path: root/engines/wage/gui.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-04-15 10:08:33 +0200
committerEugene Sandulenko2016-04-15 17:24:14 +0200
commit6a415da6b970a8922dcdeea31d35b836289533d9 (patch)
treeaf47e6feee1193fa4a1e0082e3450a50f4c287a0 /engines/wage/gui.cpp
parent0e4c846a39cdf5c8370106ba87b24ac7936818fd (diff)
downloadscummvm-rg350-6a415da6b970a8922dcdeea31d35b836289533d9.tar.gz
scummvm-rg350-6a415da6b970a8922dcdeea31d35b836289533d9.tar.bz2
scummvm-rg350-6a415da6b970a8922dcdeea31d35b836289533d9.zip
WAGE: Started screen composing
Diffstat (limited to 'engines/wage/gui.cpp')
-rw-r--r--engines/wage/gui.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp
index 8d605fee1c..f20f18c233 100644
--- a/engines/wage/gui.cpp
+++ b/engines/wage/gui.cpp
@@ -284,13 +284,19 @@ void Gui::drawScene() {
MacWindow *w = _wm.getWindow(_sceneWindowId);
w->setDimensions(*_scene->_designBounds);
+ _scene->paint(w->getSurface(), 0, 0);
+ w->draw(&_screen);
+ g_system->copyRectToScreen(_screen.getBasePtr(_scene->_designBounds->left, _scene->_designBounds->top),
+ _screen.pitch, _scene->_designBounds->left, _scene->_designBounds->top,
+ _scene->_designBounds->width(), _scene->_designBounds->height());
+
_sceneDirty = true;
_consoleDirty = true;
_menuDirty = true;
_consoleFullRedraw = true;
- _scene->paint(&_screen, _scene->_designBounds->left, _scene->_designBounds->top);
+ //_scene->paint(&_screen, _scene->_designBounds->left, _scene->_designBounds->top);
_sceneArea.left = _scene->_designBounds->left + kBorderWidth - 2;
_sceneArea.top = _scene->_designBounds->top + kBorderWidth - 2;
@@ -302,7 +308,7 @@ void Gui::drawScene() {
_consoleTextArea.setWidth(_scene->_textBounds->width() - 2 * kBorderWidth);
_consoleTextArea.setHeight(_scene->_textBounds->height() - 2 * kBorderWidth);
- paintBorder(&_screen, _sceneArea, kWindowScene);
+ //paintBorder(&_screen, _sceneArea, kWindowScene);
}
// Render console