diff options
author | Max Horn | 2010-11-16 09:53:55 +0000 |
---|---|---|
committer | Max Horn | 2010-11-16 09:53:55 +0000 |
commit | 1dbf8d73d56052654522cf4076490090a41f336b (patch) | |
tree | 4ec9fd566c75859793a1fe72b78d025a87ac03d0 /engines/tinsel/font.cpp | |
parent | ada9c9af608f1af9d00289f4aa2b7be868e2944f (diff) | |
download | scummvm-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/font.cpp')
-rw-r--r-- | engines/tinsel/font.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/tinsel/font.cpp b/engines/tinsel/font.cpp index ae7da65473..b1c8b3cb74 100644 --- a/engines/tinsel/font.cpp +++ b/engines/tinsel/font.cpp @@ -35,6 +35,8 @@ namespace Tinsel { //----------------- LOCAL GLOBAL DATA -------------------- +// FIXME: Avoid non-const global vars + static char tBuffer[TBUFSZ]; static SCNHANDLE hTagFont = 0, hTalkFont = 0; @@ -117,7 +119,7 @@ void FettleFontPal(SCNHANDLE fontPal) { pImg->hImgPal = 0; if (TinselV2 && SysVar(SV_TAGCOLOUR)) { - static COLORREF c = GetActorRGB(-1); + static COLORREF c = GetActorRGB(-1); // FIXME: Avoid non-const global vars SetTagColorRef(c); UpdateDACqueue(SysVar(SV_TAGCOLOUR), 1, &c); } |