aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/background.cpp
diff options
context:
space:
mode:
authorMax Horn2010-11-16 09:53:55 +0000
committerMax Horn2010-11-16 09:53:55 +0000
commit1dbf8d73d56052654522cf4076490090a41f336b (patch)
tree4ec9fd566c75859793a1fe72b78d025a87ac03d0 /engines/tinsel/background.cpp
parentada9c9af608f1af9d00289f4aa2b7be868e2944f (diff)
downloadscummvm-rg350-1dbf8d73d56052654522cf4076490090a41f336b.tar.gz
scummvm-rg350-1dbf8d73d56052654522cf4076490090a41f336b.tar.bz2
scummvm-rg350-1dbf8d73d56052654522cf4076490090a41f336b.zip
TINSEL: Mark all (?) global vars with a FIXME comment
Use of global vars is what prevents RTL from working in Tinsel (and probably in other engines). More specifically, the fact that many global vars are not explicitly inited when the engine is (re)launched. svn-id: r54262
Diffstat (limited to 'engines/tinsel/background.cpp')
-rw-r--r--engines/tinsel/background.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/tinsel/background.cpp b/engines/tinsel/background.cpp
index abfb9692a9..560216aadb 100644
--- a/engines/tinsel/background.cpp
+++ b/engines/tinsel/background.cpp
@@ -34,8 +34,10 @@
namespace Tinsel {
+// FIXME: Avoid non-const global vars
+
// current background
-BACKGND *pCurBgnd = NULL;
+const BACKGND *pCurBgnd = NULL;
// FIXME: Not yet used
static bool bEntireRedraw;
@@ -45,7 +47,7 @@ static bool bEntireRedraw;
* @param pBgnd Pointer to data struct for current background
*/
-void InitBackground(BACKGND *pBgnd) {
+void InitBackground(const BACKGND *pBgnd) {
int i; // playfield counter
PLAYFIELD *pPlayfield; // pointer to current playfield