aboutsummaryrefslogtreecommitdiff
path: root/sword2/mem_view.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-10-15 06:40:31 +0000
committerTorbjörn Andersson2003-10-15 06:40:31 +0000
commit8b42d65a7e922a9b9241ebe509968331fe958fb6 (patch)
tree5dcef554baa412cf676beb11c453d54957ecaa8c /sword2/mem_view.cpp
parentf74a0c18aa2ef244f987c31d3d146207c72e81ee (diff)
downloadscummvm-rg350-8b42d65a7e922a9b9241ebe509968331fe958fb6.tar.gz
scummvm-rg350-8b42d65a7e922a9b9241ebe509968331fe958fb6.tar.bz2
scummvm-rg350-8b42d65a7e922a9b9241ebe509968331fe958fb6.zip
Dumped most of the remaining "driver" code into a new "Display" class. This
touches a lot of the code, of course, and adds yet another global variable (temporarily, I hope), but everything still seems to work. Knock on wood. svn-id: r10806
Diffstat (limited to 'sword2/mem_view.cpp')
-rw-r--r--sword2/mem_view.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/sword2/mem_view.cpp b/sword2/mem_view.cpp
index ae2c5142ac..cd4fec02ad 100644
--- a/sword2/mem_view.cpp
+++ b/sword2/mem_view.cpp
@@ -18,6 +18,7 @@
*/
#include "stdafx.h"
+#include "bs2/sword2.h"
#include "bs2/build_display.h"
#include "bs2/console.h"
#include "bs2/header.h"
@@ -102,8 +103,8 @@ void MemoryManager::displayMemory(void) {
Build_display();
do {
- ServiceWindows();
- } while(!KeyWaiting());
+ g_display->updateDisplay();
+ } while (!KeyWaiting());
ReadKey(&ke); //kill the key we just pressed
if (ke.keycode == 27) //ESC