aboutsummaryrefslogtreecommitdiff
path: root/scumm/charset.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/charset.cpp')
-rw-r--r--scumm/charset.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/charset.cpp b/scumm/charset.cpp
index 9f1ddbc3c0..09e167d422 100644
--- a/scumm/charset.cpp
+++ b/scumm/charset.cpp
@@ -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() {