Skip to content

Commit

Permalink
GLK: FROTZ: Have zRGB properly convert to screen format
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Feb 14, 2019
1 parent 603115d commit d6ddb60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/glk/frotz/processor_screen.cpp
Expand Up @@ -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];
Expand Down

0 comments on commit d6ddb60

Please sign in to comment.