diff options
author | Willem Jan Palenstijn | 2015-12-27 13:52:34 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-27 13:52:34 +0100 |
commit | a49ffcd87b23f455cf777f45f734670694a69592 (patch) | |
tree | 0dd54d60125f7893820473be39ed66d6fe23e00f /engines/lab/intro.cpp | |
parent | 662649319b717632c66df840093eae37849effc4 (diff) | |
download | scummvm-rg350-a49ffcd87b23f455cf777f45f734670694a69592.tar.gz scummvm-rg350-a49ffcd87b23f455cf777f45f734670694a69592.tar.bz2 scummvm-rg350-a49ffcd87b23f455cf777f45f734670694a69592.zip |
LAB: Remove some unnecessary casts
Diffstat (limited to 'engines/lab/intro.cpp')
-rw-r--r-- | engines/lab/intro.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/lab/intro.cpp b/engines/lab/intro.cpp index 537f129863..46a20a502b 100644 --- a/engines/lab/intro.cpp +++ b/engines/lab/intro.cpp @@ -83,10 +83,10 @@ void Intro::doPictText(const Common::String filename, bool isScreen) { bool begin = true; Common::File *textFile = _vm->_resource->openDataFile(path); - byte *textBuffer = new byte[textFile->size()]; + char *textBuffer = new char[textFile->size()]; textFile->read(textBuffer, textFile->size()); delete textFile; - byte *curText = textBuffer; + const char *curText = textBuffer; while (1) { if (drawNextText) { @@ -98,10 +98,10 @@ void Intro::doPictText(const Common::String filename, bool isScreen) { if (isScreen) { _vm->_graphics->rectFillScaled(10, 10, 310, 190, 7); - curText += _vm->_graphics->flowText(_font, _vm->_isHiRes ? 0 : -1, 5, 7, false, false, true, true, _vm->_utils->vgaRectScale(14, 11, 306, 189), (char *)curText); + curText += _vm->_graphics->flowText(_font, _vm->_isHiRes ? 0 : -1, 5, 7, false, false, true, true, _vm->_utils->vgaRectScale(14, 11, 306, 189), curText); _vm->_graphics->fade(true); } else - curText += _vm->_graphics->longDrawMessage(Common::String((char *)curText), false); + curText += _vm->_graphics->longDrawMessage(Common::String(curText), false); doneFl = (*curText == 0); |