diff options
author | Paul Gilbert | 2012-09-09 20:10:32 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-09-09 20:10:32 +1000 |
commit | 8501e1cd85ecdef723599af81f14dbf19cc6e8b0 (patch) | |
tree | 07dd4968cb4a56c6e7a9efebbfd01e8523a207ef | |
parent | 97e84b2169e8f3084e568776b1a9561a2df6878e (diff) | |
download | scummvm-rg350-8501e1cd85ecdef723599af81f14dbf19cc6e8b0.tar.gz scummvm-rg350-8501e1cd85ecdef723599af81f14dbf19cc6e8b0.tar.bz2 scummvm-rg350-8501e1cd85ecdef723599af81f14dbf19cc6e8b0.zip |
HOPKINS: Added initialisation of graphics manager and globals fields
-rw-r--r-- | engines/hopkins/globals.cpp | 31 | ||||
-rw-r--r-- | engines/hopkins/graphics.cpp | 16 |
2 files changed, 44 insertions, 3 deletions
diff --git a/engines/hopkins/globals.cpp b/engines/hopkins/globals.cpp index a04387e3a4..f0b06bf975 100644 --- a/engines/hopkins/globals.cpp +++ b/engines/hopkins/globals.cpp @@ -38,9 +38,30 @@ Globals::Globals() { MUSICVOL = 6; SOUNDVOL = 6; VOICEVOL = 6; - MUSICOFF = false; - SOUNDOFF = false; - VOICEOFF = false; + XSETMODE = 0; + XZOOM = 0; + min_x = min_y = 0; + max_x = max_y = 0; + lItCounter = 0; + lOldItCounter = 0; + g_old_anim = 0; + g_old_sens = 0; + police_l = police_h = 0; + TETE = NULL; + texte_long = 0; + TEXTE_FORMATE = 0; + OBJET_EN_COURS = 0; + NUM_FICHIER_OBJ = 0; + nbrligne = 0; + largeur_boite = 0; + hauteur_boite = 0; + FORET = 0; + OBJL = OBJH = 0; + HELICO = 0; + CAT_POSI = 0; + CAT_TAILLE = 0; + Nouv_objet = 0; + // Initialise pointers ICONE = NULL; @@ -65,8 +86,12 @@ Globals::Globals() { BufLig = NULL; Bufferdecor = NULL; ADR_FICHIER_OBJ = NULL; + police = NULL; // Reset flags + MUSICOFF = false; + SOUNDOFF = false; + VOICEOFF = false; XFULLSCREEN = false; XFORCE16 = false; XFORCE8 = false; diff --git a/engines/hopkins/graphics.cpp b/engines/hopkins/graphics.cpp index 385d9f46e8..870d947ffe 100644 --- a/engines/hopkins/graphics.cpp +++ b/engines/hopkins/graphics.cpp @@ -33,8 +33,23 @@ namespace Hopkins { GraphicsManager::GraphicsManager() { SDL_MODEYES = false; + SDL_ECHELLE = 0; + XSCREEN = YSCREEN = 0; + WinScan = 0; + Winbpp = 0; + PAL_PIXELS = NULL; + nbrligne = 0; + Linear = false; + VideoPtr = NULL; + start_x = 0; + ofscroll = 0; + SCROLL = 0; + PCX_L = PCX_H = 0; + DOUBLE_ECRAN = false; + OLD_SCROLL = 0; MANU_SCROLL = 1; SPEED_SCROLL = 16; + nbrligne2 = 0; Agr_x = Agr_y = 0; Agr_Flag_x = Agr_Flag_y = 0; } @@ -107,6 +122,7 @@ void GraphicsManager::DD_Lock() { } void GraphicsManager::DD_Unlock() { + assert(VideoPtr); g_system->unlockScreen(); } |