Clear the text surface when loading a saved game, otherwise any text that

was displayed before loading the game will remain.

I hope this is the correct fix.

svn-id: r17382
This commit is contained in:
Torbjörn Andersson 2005-04-05 07:53:46 +00:00
parent 5de9e36ff8
commit 23e4199699
4 changed files with 8 additions and 2 deletions

View file

@ -208,11 +208,11 @@ CharsetRenderer::CharsetRenderer(ScummEngine *vm) {
const int size = _vm->_screenWidth * _vm->_screenHeight;
_textSurface.pixels = malloc(size);
memset(_textSurface.pixels, CHARSET_MASK_TRANSPARENCY, size);
_textSurface.w = _vm->_screenWidth;
_textSurface.h = _vm->_screenHeight;
_textSurface.pitch = _vm->_screenWidth;
_textSurface.bytesPerPixel = 1;
clearTextSurface();
}
CharsetRenderer::~CharsetRenderer() {