aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2019-02-20 20:14:46 -0800
committerPaul Gilbert2019-02-20 20:14:46 -0800
commitded74addaa97e6f55f311e30fe67cc363d2be107 (patch)
tree7d545b570d992c0c02eb8dca890cf2e4664186ab
parent12788e6de8e9f690e32e046760e97e4f154e681f (diff)
downloadscummvm-rg350-ded74addaa97e6f55f311e30fe67cc363d2be107.tar.gz
scummvm-rg350-ded74addaa97e6f55f311e30fe67cc363d2be107.tar.bz2
scummvm-rg350-ded74addaa97e6f55f311e30fe67cc363d2be107.zip
GLK: FROTZ: Fix default colors for non-V6 games
-rw-r--r--engines/glk/frotz/config.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/glk/frotz/config.cpp b/engines/glk/frotz/config.cpp
index be6c6df33e..6948d1c14d 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 {