aboutsummaryrefslogtreecommitdiff
path: root/engines/glk
diff options
context:
space:
mode:
authorPaul Gilbert2019-02-16 20:52:53 -0800
committerPaul Gilbert2019-02-16 20:52:53 -0800
commit774af67540b10f9b250836da4fdd5baff7e0da56 (patch)
tree8083bdffc801fb438d68ff751135d002d869cdfe /engines/glk
parent4c3729acd75723b31af3931f59714080811b5d3f (diff)
downloadscummvm-rg350-774af67540b10f9b250836da4fdd5baff7e0da56.tar.gz
scummvm-rg350-774af67540b10f9b250836da4fdd5baff7e0da56.tar.bz2
scummvm-rg350-774af67540b10f9b250836da4fdd5baff7e0da56.zip
GLK: FROTZ: Properly set window colors
Diffstat (limited to 'engines/glk')
-rw-r--r--engines/glk/frotz/processor.cpp1
-rw-r--r--engines/glk/frotz/windows.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/engines/glk/frotz/processor.cpp b/engines/glk/frotz/processor.cpp
index eebcc606d2..8e719e2bf5 100644
--- a/engines/glk/frotz/processor.cpp
+++ b/engines/glk/frotz/processor.cpp
@@ -265,6 +265,7 @@ void Processor::interpret() {
// 0OP opcodes
(*this.*op0_opcodes[opcode - 0xb0])();
+
} else {
// VAR opcodes
zbyte specifier1;
diff --git a/engines/glk/frotz/windows.cpp b/engines/glk/frotz/windows.cpp
index 4f59666705..cbc0682de7 100644
--- a/engines/glk/frotz/windows.cpp
+++ b/engines/glk/frotz/windows.cpp
@@ -130,6 +130,8 @@ void Window::setProperty(WindowProperty propType, zword value) {
case TRUE_FG_COLOR:
case TRUE_BG_COLOR:
_properties[propType] = value;
+ if (_win && _win->_stream)
+ _win->_stream->setZColors(_properties[TRUE_FG_COLOR], _properties[TRUE_BG_COLOR]);
break;
default: