Skip to content

Commit

Permalink
GLK: FROTZ: Fix default colors for non-V6 games
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Feb 21, 2019
1 parent 12788e6 commit ded74ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engines/glk/frotz/config.cpp
Expand Up @@ -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 {
Expand Down

0 comments on commit ded74ad

Please sign in to comment.