aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFlorian Kagerer2009-06-27 12:36:12 +0000
committerFlorian Kagerer2009-06-27 12:36:12 +0000
commita7cb4362b430969d21f9dd57554a7dec3a4f16ee (patch)
tree132d3db83cd257e9a7237a6d6ed07861cc88d866 /engines
parent49dd58de45db302214b65af5b296a21f84f02ebe (diff)
downloadscummvm-rg350-a7cb4362b430969d21f9dd57554a7dec3a4f16ee.tar.gz
scummvm-rg350-a7cb4362b430969d21f9dd57554a7dec3a4f16ee.tar.bz2
scummvm-rg350-a7cb4362b430969d21f9dd57554a7dec3a4f16ee.zip
LOL: cleanup
svn-id: r41916
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/lol.cpp3
-rw-r--r--engines/kyra/text_lol.cpp14
-rw-r--r--engines/kyra/text_lol.h9
3 files changed, 7 insertions, 19 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp
index 4dee693a55..51a3e1e19b 100644
--- a/engines/kyra/lol.cpp
+++ b/engines/kyra/lol.cpp
@@ -850,9 +850,6 @@ void LoLEngine::startup() {
_loadSuppFilesFlag = 1;
- _txt->setAnimParameters("<MORE>", 10, 31, 0);
- _txt->setAnimFlag(true);
-
_sound->loadSfxFile("LORESFX");
setMouseCursorToItemInHand();
diff --git a/engines/kyra/text_lol.cpp b/engines/kyra/text_lol.cpp
index 98aaef7f96..2174bcc441 100644
--- a/engines/kyra/text_lol.cpp
+++ b/engines/kyra/text_lol.cpp
@@ -33,8 +33,8 @@
namespace Kyra {
TextDisplayer_LoL::TextDisplayer_LoL(LoLEngine *vm, Screen_LoL *screen) : _vm(vm), _screen(screen),
- _scriptParameter(0), _animWidth(0), _animColor1(0), _animColor2(0), _animFlag(true), _lineCount(0),
- _printFlag(false), _lineWidth(0), _numCharsTotal(0), _numCharsLeft(0), _numCharsPrinted(0) {
+ _scriptParameter(0), _lineCount(0), _printFlag(false), _lineWidth(0), _numCharsTotal(0),
+ _numCharsLeft(0), _numCharsPrinted(0) {
memset(_stringParameters, 0, 15 * sizeof(char *));
_buffer = new char[600];
@@ -138,7 +138,7 @@ void TextDisplayer_LoL::resetDimTextPositions(int dim) {
_textDimData[dim].line = 0;
}
-void TextDisplayer_LoL::setAnimParameters(const char *str, int x, uint8 col1, uint8 col2) {
+/*void TextDisplayer_LoL::setAnimParameters(const char *str, int x, uint8 col1, uint8 col2) {
static const char defaultStr[] = "<MORE>";
if (str) {
@@ -152,7 +152,7 @@ void TextDisplayer_LoL::setAnimParameters(const char *str, int x, uint8 col1, ui
_animColor1 = 0;
_animColor2 = 0;
}
-}
+}*/
void TextDisplayer_LoL::printDialogueText(int dim, char *str, EMCState *script, const uint16 *paramList, int16 paramIndex) {
int oldDim = 0;
@@ -496,7 +496,7 @@ void TextDisplayer_LoL::printLine(char *str) {
int lines = (sd->h - _screen->_charOffset) / fh;
while (_textDimData[sdx].line >= lines) {
- if (lines <= _lineCount && _animFlag) {
+ if (lines <= _lineCount) {
_lineCount = 0;
textPageBreak();
_numCharsPrinted = 0;
@@ -521,8 +521,8 @@ void TextDisplayer_LoL::printLine(char *str) {
char c = 0;
if ((lw + _textDimData[sdx].column) > w) {
- if ((lines - 1) <= _lineCount && _animFlag)
- w -= (_animWidth * (_screen->getFontWidth() + _screen->_charWidth));
+ if ((lines - 1) <= _lineCount)
+ w -= (10 * (_screen->getFontWidth() + _screen->_charWidth));
w -= _textDimData[sdx].column;
diff --git a/engines/kyra/text_lol.h b/engines/kyra/text_lol.h
index fc707843aa..06c13e1fef 100644
--- a/engines/kyra/text_lol.h
+++ b/engines/kyra/text_lol.h
@@ -40,9 +40,6 @@ public:
TextDisplayer_LoL(LoLEngine *vm, Screen_LoL *screen);
~TextDisplayer_LoL();
- void setAnimParameters(const char *str, int x, uint8 col1, uint8 col2);
- void setAnimFlag(bool flag) { _animFlag = flag; }
-
void setupField(bool mode);
void expandField();
@@ -80,12 +77,6 @@ private:
uint32 _numCharsLeft;
uint32 _numCharsPrinted;
- const char *_animString;
- int16 _animWidth;
- uint8 _animColor1;
- uint8 _animColor2;
-
- bool _animFlag;
bool _printFlag;
LoLEngine *_vm;