diff options
author | Strangerke | 2012-12-06 00:10:46 +0100 |
---|---|---|
committer | Strangerke | 2012-12-06 00:10:46 +0100 |
commit | 89f3ecdfb13ab2156776639b4d97016f962c42bc (patch) | |
tree | f739cb77cd41187adf7fd04f13469a38d1022b1f | |
parent | 6831f5bae612b8472d2f0ce82ec492192c29634b (diff) | |
download | scummvm-rg350-89f3ecdfb13ab2156776639b4d97016f962c42bc.tar.gz scummvm-rg350-89f3ecdfb13ab2156776639b4d97016f962c42bc.tar.bz2 scummvm-rg350-89f3ecdfb13ab2156776639b4d97016f962c42bc.zip |
HOPKINS: Better initialization of FontManager
-rw-r--r-- | engines/hopkins/font.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/engines/hopkins/font.cpp b/engines/hopkins/font.cpp index b5813f8163..cb7580cc33 100644 --- a/engines/hopkins/font.cpp +++ b/engines/hopkins/font.cpp @@ -41,8 +41,26 @@ void FontManager::setParent(HopkinsEngine *vm) { } void FontManager::clearAll() { - for (int idx = 0; idx < 11; ++idx) + for (int idx = 0; idx < 12; ++idx) { Common::fill((byte *)&Txt[idx], (byte *)&Txt[idx] + sizeof(TxtItem), 0); + + ListeTxt[idx].enabled = false; + ListeTxt[idx].height = 0; + ListeTxt[idx].width = 0; + ListeTxt[idx].xp = 0; + ListeTxt[idx].yp = 0; + } + + for (int idx = 0; idx < 21; idx++) + TRIER_TEXT[idx] = 0; + + oldname = Common::String(""); + nom_index = Common::String(""); + + for (int idx = 0; idx < 4048; idx++) + Index[idx] = 0; + + texte_tmp = g_PTRNUL; } // Text On |