From 774af67540b10f9b250836da4fdd5baff7e0da56 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 16 Feb 2019 20:52:53 -0800 Subject: GLK: FROTZ: Properly set window colors --- engines/glk/frotz/processor.cpp | 1 + engines/glk/frotz/windows.cpp | 2 ++ 2 files changed, 3 insertions(+) (limited to 'engines/glk') 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: -- cgit v1.2.3