aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/builtin.cpp
diff options
context:
space:
mode:
authorSimei Yin2018-04-01 18:02:14 +0200
committerSimei Yin2018-04-01 18:02:14 +0200
commit2ea485579932e9e470cb825ed107eba2a86a85c9 (patch)
treeea972e29e84f35b4dce3fb7fd51e203145313593 /engines/sludge/builtin.cpp
parent506ed95cdcf11523efb06f8816c4f99a32a6a243 (diff)
downloadscummvm-rg350-2ea485579932e9e470cb825ed107eba2a86a85c9.tar.gz
scummvm-rg350-2ea485579932e9e470cb825ed107eba2a86a85c9.tar.bz2
scummvm-rg350-2ea485579932e9e470cb825ed107eba2a86a85c9.zip
SLUDGE: Move global variable pastePalette to TextManager and refactor a little
Diffstat (limited to 'engines/sludge/builtin.cpp')
-rw-r--r--engines/sludge/builtin.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/sludge/builtin.cpp b/engines/sludge/builtin.cpp
index 7385d4d861..dba5f01694 100644
--- a/engines/sludge/builtin.cpp
+++ b/engines/sludge/builtin.cpp
@@ -55,7 +55,6 @@
namespace Sludge {
int speechMode = 0;
-SpritePalette pastePalette;
Variable *launchResult = NULL;
@@ -775,7 +774,7 @@ builtIn(setPasteColour) {
if (!getRGBParams(red, green, blue, fun))
return BR_ERROR;
- setFontColour(pastePalette, (byte)red, (byte)green, (byte)blue);
+ g_sludge->_txtMan->setPasterColor((byte)red, (byte)green, (byte)blue);
return BR_CONTINUE;
}
@@ -846,7 +845,7 @@ builtIn(pasteString) {
trimStack(fun->stack);
if (x == IN_THE_CENTRE)
x = g_sludge->_gfxMan->getCenterX(g_sludge->_txtMan->stringWidth(newText));
- g_sludge->_txtMan->pasteStringToBackdrop(newText, x, y, pastePalette);
+ g_sludge->_txtMan->pasteStringToBackdrop(newText, x, y);
return BR_CONTINUE;
}
@@ -2160,7 +2159,7 @@ builtIn(burnString) {
trimStack(fun->stack);
if (x == IN_THE_CENTRE)
x = g_sludge->_gfxMan->getCenterX(g_sludge->_txtMan->stringWidth(newText));
- g_sludge->_txtMan->burnStringToBackdrop(newText, x, y, pastePalette);
+ g_sludge->_txtMan->burnStringToBackdrop(newText, x, y);
return BR_CONTINUE;
}