diff options
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() { |