diff options
author | Filippos Karapetis | 2009-03-29 12:28:24 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-03-29 12:28:24 +0000 |
commit | d883cb209eab63268338b3f86843ce32c1027fdb (patch) | |
tree | 8ee94e8614e0a64d0eeb5620c20d21e2829a6012 /engines | |
parent | 01812f083028b95a796a3e7ca89749bff62db7b3 (diff) | |
download | scummvm-rg350-d883cb209eab63268338b3f86843ce32c1027fdb.tar.gz scummvm-rg350-d883cb209eab63268338b3f86843ce32c1027fdb.tar.bz2 scummvm-rg350-d883cb209eab63268338b3f86843ce32c1027fdb.zip |
Fixed the colors of the widgets in KQ5's options menu
svn-id: r39737
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index 4749655b55..7559b0d141 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -3105,7 +3105,12 @@ reg_t kDisplay(EngineState *s, int funct_nr, int argc, reg_t *argv) { // TODO: in SCI1VGA the default colors for text and background are #0 (black) // SCI0 case should be checked if (s->resmgr->_sciVersion >= SCI_VERSION_01_VGA) { - color0.visual = bg_color.visual = get_pic_color(s, 0); + // This priority check fixes the colors in the menus in KQ5 + // TODO/FIXME: Is this correct? + if (color0.priority >= 0) + color0.visual = get_pic_color(s, 0); + if (bg_color.priority >= 0) + bg_color.visual = get_pic_color(s, 0); } if (textp.segment) { |