aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBorja Lorente2016-06-05 21:20:13 +0200
committerBorja Lorente2016-08-14 18:07:22 +0200
commit6f5997fec6a7fcf1f3a9875218f82a7fda73ac31 (patch)
tree8ce8141b2b497a80abb6b8e5a8c26febd8594e82
parentd56f5a3bc43dd978244d17902e993704da8ace5e (diff)
downloadscummvm-rg350-6f5997fec6a7fcf1f3a9875218f82a7fda73ac31.tar.gz
scummvm-rg350-6f5997fec6a7fcf1f3a9875218f82a7fda73ac31.tar.bz2
scummvm-rg350-6f5997fec6a7fcf1f3a9875218f82a7fda73ac31.zip
MACVENTURE: Add naked window for tests
-rw-r--r--engines/macventure/macventure.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/macventure/macventure.cpp b/engines/macventure/macventure.cpp
index 8cf6ba01cd..67efbc8e31 100644
--- a/engines/macventure/macventure.cpp
+++ b/engines/macventure/macventure.cpp
@@ -63,6 +63,10 @@ Common::Error MacVentureEngine::run() {
_wm = new Graphics::MacWindowManager();
_wm->setScreen(&_screen);
+ _screen.fillRect(Common::Rect(0, 0, _screen.w, _screen.h), Graphics::kColorWhite);
+
+ Graphics::MacWindow *w = _wm->addWindow(false, true, true);
+ w->setDimensions(Common::Rect(100, 100));
// Your main even loop should be (invoked from) here.
debug("MacVentureEngine::go: Hello, World!");
@@ -71,7 +75,7 @@ Common::Error MacVentureEngine::run() {
while (!_shouldQuit) {
processEvents();
- debug("Ping");
+ _wm->draw();
g_system->updateScreen();
g_system->delayMillis(50);