Ticket #8897: r33084-cine-bss_size_reduction.patch
File r33084-cine-bss_size_reduction.patch, 2.9 KB (added by , 16 years ago) |
---|
-
engines/cine/cine.h
94 94 95 95 Common::StringList _volumeResourceFiles; 96 96 StringPtrHashMap _volumeEntriesMap; 97 TextHandler _textHandler; 97 98 98 99 private: 99 100 void initialize(void); -
engines/cine/texte.h
34 34 typedef char CommandeType[20]; 35 35 36 36 extern byte *textDataPtr; 37 extern byte textTable[256][2][16 * 8];38 37 38 struct TextHandler { 39 byte textTable[256][2][16 * 8]; 40 }; 41 39 42 extern const char **failureMessages; 40 43 extern const CommandeType *defaultActionCommand; 41 44 extern const CommandeType *systemMenu; -
engines/cine/gfx.cpp
337 337 x += 5; 338 338 } else if ((width = fontParamTable[(unsigned char)character].characterWidth)) { 339 339 idx = fontParamTable[(unsigned char)character].characterIdx; 340 drawSpriteRaw( textTable[idx][0],textTable[idx][1], 16, 8, _backBuffer, x, y);340 drawSpriteRaw(g_cine->_textHandler.textTable[idx][0], g_cine->_textHandler.textTable[idx][1], 16, 8, _backBuffer, x, y); 341 341 x += width + 1; 342 342 } 343 343 … … 938 938 x += 5; 939 939 } else if ((width = fontParamTable[(unsigned char)character].characterWidth)) { 940 940 idx = fontParamTable[(unsigned char)character].characterIdx; 941 drawSpriteRaw2( textTable[idx][0], 0, 16, 8, _backBuffer, x, y);941 drawSpriteRaw2(g_cine->_textHandler.textTable[idx][0], 0, 16, 8, _backBuffer, x, y); 942 942 x += width + 1; 943 943 } 944 944 -
engines/cine/texte.cpp
31 31 32 32 byte *textDataPtr; 33 33 34 byte textTable[256][2][16 * 8];35 36 34 const char **failureMessages; 37 35 const CommandeType *defaultActionCommand; 38 36 const CommandeType *systemMenu; … … 77 75 loadRelatedPalette(pFileName); 78 76 79 77 for (i = 0; i < numCharacters; i++) { 80 gfxConvertSpriteToRaw( textTable[i][0], tempBuffer, 16, 8);81 generateMask( textTable[i][0],textTable[i][1], 16 * 8, 0);78 gfxConvertSpriteToRaw(g_cine->_textHandler.textTable[i][0], tempBuffer, 16, 8); 79 generateMask(g_cine->_textHandler.textTable[i][0], g_cine->_textHandler.textTable[i][1], 16 * 8, 0); 82 80 tempBuffer += dataSize; 83 81 } 84 82 } else { 85 83 for (i = 0; i < 90; i++) { 86 gfxConvertSpriteToRaw( textTable[i][0], tempBuffer, 8, 8);87 generateMask( textTable[i][0],textTable[i][1], 8 * 8, 0);84 gfxConvertSpriteToRaw(g_cine->_textHandler.textTable[i][0], tempBuffer, 8, 8); 85 generateMask(g_cine->_textHandler.textTable[i][0], g_cine->_textHandler.textTable[i][1], 8 * 8, 0); 88 86 tempBuffer += 0x40; 89 87 } 90 88 }