From ded74addaa97e6f55f311e30fe67cc363d2be107 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 20 Feb 2019 20:14:46 -0800 Subject: [PATCH] GLK: FROTZ: Fix default colors for non-V6 games --- engines/glk/frotz/config.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/glk/frotz/config.cpp b/engines/glk/frotz/config.cpp index be6c6df33ee9..6948d1c14d37 100644 --- a/engines/glk/frotz/config.cpp +++ b/engines/glk/frotz/config.cpp @@ -167,13 +167,13 @@ void UserOptions::initialize(uint hVersion) { _object_movement = getConfigBool("object_movement"); int defaultFg = hVersion == V6 ? 0 : 0xffffff; - int defaultBg = hVersion == V6 ? 0xffffff : 0; + int defaultBg = hVersion == V6 ? 0xffffff : 0x80; defaultFg = getConfigInt("foreground", defaultFg, 0xffffff); defaultBg = getConfigInt("background", defaultBg, 0xffffff); Graphics::PixelFormat format = g_system->getScreenFormat(); - _defaultForeground = format.RGBToColor(defaultFg & 0xff, (defaultFg >> 8) & 0xff, (defaultFg >> 16) & 0xff); - _defaultBackground = format.RGBToColor(defaultBg & 0xff, (defaultBg >> 8) & 0xff, (defaultBg >> 16) & 0xff); + _defaultForeground = format.RGBToColor((defaultFg >> 16) & 0xff, (defaultFg >> 8) & 0xff, defaultFg & 0xff); + _defaultBackground = format.RGBToColor((defaultBg >> 16) & 0xff, (defaultBg >> 8) & 0xff, defaultBg & 0xff); } bool UserOptions::isInfocom() const {