diff options
author | Paul Gilbert | 2019-01-27 20:19:37 -0800 |
---|---|---|
committer | Paul Gilbert | 2019-01-29 21:17:18 -0800 |
commit | b92f8f08567f328a9781f0cf467469ca61d9c5ff (patch) | |
tree | 8e62bdc73542f367646977756b295de34d463748 /engines/glk/screen.cpp | |
parent | 53a1426cc398568f8e707e132ad0d7f1a7782c0f (diff) | |
download | scummvm-rg350-b92f8f08567f328a9781f0cf467469ca61d9c5ff.tar.gz scummvm-rg350-b92f8f08567f328a9781f0cf467469ca61d9c5ff.tar.bz2 scummvm-rg350-b92f8f08567f328a9781f0cf467469ca61d9c5ff.zip |
GLK: FROTZ: Make window transparent for V6 games to not obscure upper area
Diffstat (limited to 'engines/glk/screen.cpp')
-rw-r--r-- | engines/glk/screen.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/glk/screen.cpp b/engines/glk/screen.cpp index 8322e9c246..465adab082 100644 --- a/engines/glk/screen.cpp +++ b/engines/glk/screen.cpp @@ -65,8 +65,10 @@ void Screen::fill(const byte *rgb) { } void Screen::fillRect(const Rect &box, const byte *rgb) { - uint color = format.RGBToColor(rgb[0], rgb[1], rgb[2]); - Graphics::Screen::fillRect(box, color); + if (rgb[0] != TRANSPARENT_RGB || rgb[1] != TRANSPARENT_RGB || rgb[2] != TRANSPARENT_RGB) { + uint color = format.RGBToColor(rgb[0], rgb[1], rgb[2]); + Graphics::Screen::fillRect(box, color); + } } bool Screen::loadFonts() { |