diff options
author | Paul Gilbert | 2019-02-11 21:32:34 -0800 |
---|---|---|
committer | Paul Gilbert | 2019-02-13 20:58:34 -0800 |
commit | d6ddb601ca9ae9c5e6316e1e0f05f4854d066df7 (patch) | |
tree | 772b18d3df8270f9ca9114bd11b604a2f6517d85 /engines | |
parent | 603115dfca61446439973689b15f713e7de96edf (diff) | |
download | scummvm-rg350-d6ddb601ca9ae9c5e6316e1e0f05f4854d066df7.tar.gz scummvm-rg350-d6ddb601ca9ae9c5e6316e1e0f05f4854d066df7.tar.bz2 scummvm-rg350-d6ddb601ca9ae9c5e6316e1e0f05f4854d066df7.zip |
GLK: FROTZ: Have zRGB properly convert to screen format
Diffstat (limited to 'engines')
-rw-r--r-- | engines/glk/frotz/processor_screen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |