diff options
author | Simei Yin | 2018-04-01 18:02:14 +0200 |
---|---|---|
committer | Simei Yin | 2018-04-01 18:02:14 +0200 |
commit | 2ea485579932e9e470cb825ed107eba2a86a85c9 (patch) | |
tree | ea972e29e84f35b4dce3fb7fd51e203145313593 /engines/sludge/statusba.cpp | |
parent | 506ed95cdcf11523efb06f8816c4f99a32a6a243 (diff) | |
download | scummvm-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/statusba.cpp')
-rw-r--r-- | engines/sludge/statusba.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/sludge/statusba.cpp b/engines/sludge/statusba.cpp index 1aa24971f1..04fa18e957 100644 --- a/engines/sludge/statusba.cpp +++ b/engines/sludge/statusba.cpp @@ -114,14 +114,14 @@ void drawStatusBar() { } void statusBarColour(byte r, byte g, byte b) { - setFontColour(verbLinePalette, r, g, b); + verbLinePalette.setColor(r, g, b); nowStatus->statusR = r; nowStatus->statusG = g; nowStatus->statusB = b; } void statusBarLitColour(byte r, byte g, byte b) { - setFontColour(litVerbLinePalette, r, g, b); + litVerbLinePalette.setColor(r, g, b); nowStatus->statusLR = r; nowStatus->statusLG = g; nowStatus->statusLB = b; @@ -152,8 +152,8 @@ StatusStuff *copyStatusBarStuff(StatusStuff *here) { void restoreBarStuff(StatusStuff *here) { delete nowStatus; - setFontColour(verbLinePalette, here->statusR, here->statusG, here->statusB); - setFontColour(litVerbLinePalette, here->statusLR, here->statusLG, here->statusLB); + verbLinePalette.setColor((byte)here->statusR, (byte)here->statusG, (byte)here->statusB); + litVerbLinePalette.setColor((byte)here->statusLR, (byte)here->statusLG, (byte)here->statusLB); nowStatus = here; } @@ -215,8 +215,8 @@ bool loadStatusBars(Common::SeekableReadStream *stream) { nowStatus->statusLG = stream->readByte(); nowStatus->statusLB = stream->readByte(); - setFontColour(verbLinePalette, nowStatus->statusR, nowStatus->statusG, nowStatus->statusB); - setFontColour(litVerbLinePalette, nowStatus->statusLR, nowStatus->statusLG, nowStatus->statusLB); + verbLinePalette.setColor((byte)nowStatus->statusR, (byte)nowStatus->statusG, (byte)nowStatus->statusB); + litVerbLinePalette.setColor((byte)nowStatus->statusLR, (byte)nowStatus->statusLG, (byte)nowStatus->statusLB); // Read what's being said StatusBar **viewLine = & (nowStatus->firstStatusBar); StatusBar *newOne; |