diff options
author | Torbjörn Andersson | 2003-11-16 14:18:29 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-11-16 14:18:29 +0000 |
commit | fa2b8ba8de31f5659c675b507553a2b0a1ebd841 (patch) | |
tree | 52841e821b3283a0ff9430cf8be0cc273208f6e6 /sword2/driver/menu.cpp | |
parent | ab066c41e0a42320137bc6cb79d77720f932af0e (diff) | |
download | scummvm-rg350-fa2b8ba8de31f5659c675b507553a2b0a1ebd841.tar.gz scummvm-rg350-fa2b8ba8de31f5659c675b507553a2b0a1ebd841.tar.bz2 scummvm-rg350-fa2b8ba8de31f5659c675b507553a2b0a1ebd841.zip |
More cleanup. I've eliminated all the temporary global variables I've added
over the past few weeks, except for g_sword2. (Of course, this doesn't
necessarily make the code any prettier, but we can work on that later.)
svn-id: r11309
Diffstat (limited to 'sword2/driver/menu.cpp')
-rw-r--r-- | sword2/driver/menu.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sword2/driver/menu.cpp b/sword2/driver/menu.cpp index bbcd63668a..c70b11f83d 100644 --- a/sword2/driver/menu.cpp +++ b/sword2/driver/menu.cpp @@ -17,11 +17,8 @@ * $Header$ */ -#include "stdafx.h" -#include "common/rect.h" -#include "sword2/driver/driver96.h" -#include "sword2/driver/menu.h" -#include "sword2/driver/d_draw.h" +#include "common/stdafx.h" +#include "sword2/sword2.h" #include "sword2/driver/render.h" namespace Sword2 { @@ -65,10 +62,10 @@ void Graphics::processMenu(void) { static int32 lastTime = 0; if (lastTime == 0) { - lastTime = g_system->get_msecs(); + lastTime = _vm->_system->get_msecs(); frameCount = 1; } else { - delta = g_system->get_msecs() - lastTime; + delta = _vm->_system->get_msecs() - lastTime; if (delta > 250) { lastTime += delta; delta = 250; |