aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle/outtext.cpp
diff options
context:
space:
mode:
authorStrangerke2014-01-10 01:46:38 +0100
committerStrangerke2014-01-10 01:46:38 +0100
commitb3c377aacd1fb493fc6ec8a6c4a08ded2db95af2 (patch)
treef4d6f6c3633726c84e45d9a9847aaf5306fcbc9f /engines/mortevielle/outtext.cpp
parent048e04a072a34b19cf4e8d7cb3c1b245e1afc969 (diff)
downloadscummvm-rg350-b3c377aacd1fb493fc6ec8a6c4a08ded2db95af2.tar.gz
scummvm-rg350-b3c377aacd1fb493fc6ec8a6c4a08ded2db95af2.tar.bz2
scummvm-rg350-b3c377aacd1fb493fc6ec8a6c4a08ded2db95af2.zip
MORTEVIELLE: Get rid of setParent()
Diffstat (limited to 'engines/mortevielle/outtext.cpp')
-rw-r--r--engines/mortevielle/outtext.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/mortevielle/outtext.cpp b/engines/mortevielle/outtext.cpp
index 16bce24a93..2518b317d5 100644
--- a/engines/mortevielle/outtext.cpp
+++ b/engines/mortevielle/outtext.cpp
@@ -63,7 +63,7 @@ void TextHandler::displayStr(Common::String inputStr, int x, int y, int dx, int
// Safeguard: add $ just in case
inputStr += '$';
- _vm->_screenSurface.putxy(x, y);
+ _vm->_screenSurface->putxy(x, y);
int tab = 6;
dx *= 6;
dy *= 6;
@@ -77,19 +77,19 @@ void TextHandler::displayStr(Common::String inputStr, int x, int y, int dx, int
while (!stringParsed) {
switch (inputStr[p]) {
case '@':
- _vm->_screenSurface.drawString(s, typ);
+ _vm->_screenSurface->drawString(s, typ);
s = "";
++p;
xc = x;
yc += 6;
- _vm->_screenSurface.putxy(xc, yc);
+ _vm->_screenSurface->putxy(xc, yc);
break;
case ' ':
s += ' ';
xc += tab;
++p;
if (nextWord(p, inputStr.c_str(), tab) + xc > xf) {
- _vm->_screenSurface.drawString(s, typ);
+ _vm->_screenSurface->drawString(s, typ);
s = "";
xc = x;
yc += 6;
@@ -100,20 +100,20 @@ void TextHandler::displayStr(Common::String inputStr, int x, int y, int dx, int
do {
j = x;
do {
- _vm->_screenSurface.putxy(j, i);
- _vm->_screenSurface.drawString(" ", 0);
+ _vm->_screenSurface->putxy(j, i);
+ _vm->_screenSurface->drawString(" ", 0);
j += 6;
} while (j <= xf);
i += 6;
} while (i <= yf);
yc = y;
}
- _vm->_screenSurface.putxy(xc, yc);
+ _vm->_screenSurface->putxy(xc, yc);
}
break;
case '$':
stringParsed = true;
- _vm->_screenSurface.drawString(s, typ);
+ _vm->_screenSurface->drawString(s, typ);
break;
default:
s += inputStr[p];