aboutsummaryrefslogtreecommitdiff
path: root/sword2/logic.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/logic.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/logic.cpp')
-rw-r--r--sword2/logic.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/sword2/logic.cpp b/sword2/logic.cpp
index 4dc4123f77..d173767a37 100644
--- a/sword2/logic.cpp
+++ b/sword2/logic.cpp
@@ -18,6 +18,7 @@
*/
#include "stdafx.h"
+#include "bs2/sword2.h"
#include "bs2/build_display.h"
#include "bs2/console.h"
#include "bs2/debug.h"
@@ -347,8 +348,8 @@ uint32 logic::examineRunList(void) {
Build_display();
do {
- ServiceWindows();
- } while(!KeyWaiting());
+ g_display->updateDisplay();
+ } while (!KeyWaiting());
// kill the key we just pressed
ReadKey(&ke);