From d6ddb601ca9ae9c5e6316e1e0f05f4854d066df7 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 11 Feb 2019 21:32:34 -0800 Subject: GLK: FROTZ: Have zRGB properly convert to screen format --- engines/glk/frotz/processor_screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/glk') diff --git a/engines/glk/frotz/processor_screen.cpp b/engines/glk/frotz/processor_screen.cpp index 95e1218f01..a440cfa013 100644 --- a/engines/glk/frotz/processor_screen.cpp +++ b/engines/glk/frotz/processor_screen.cpp @@ -274,7 +274,7 @@ void Processor::z_print_table() { #define zG(i) ((((i >> 5) & 0x1F) << 3) | (((i >> 5) & 0x1F) >> 2)) #define zR(i) ((((i ) & 0x1F) << 3) | (((i ) & 0x1F) >> 2)) -#define zRGB(i) (zR(i) << 16 | zG(i) << 8 | zB(i)) +#define zRGB(i) _screen->format.RGBToColor(zR(i), zG(i), zB(i)) void Processor::z_set_true_colour() { int zfore = zargs[0]; -- cgit v1.2.3