diff options
author | Matan Bareket | 2019-04-02 13:55:49 -0400 |
---|---|---|
committer | Matan Bareket | 2019-04-02 13:56:12 -0400 |
commit | e84e71ed34f359f616a1ddbbd2c9cd54e978022e (patch) | |
tree | 594bf67bb142b6aca40e79a3735e28befe29acf4 /backends/platform | |
parent | bba5513a2d8a6bce05c8bb6289d1a8deff743e4b (diff) | |
download | scummvm-rg350-e84e71ed34f359f616a1ddbbd2c9cd54e978022e.tar.gz scummvm-rg350-e84e71ed34f359f616a1ddbbd2c9cd54e978022e.tar.bz2 scummvm-rg350-e84e71ed34f359f616a1ddbbd2c9cd54e978022e.zip |
BACKENDS: Add gray20 color to our XPM icon parser
We don't change the icon that often but there's much more x11 colors than just black and gray20 that we may end up having in the XPM file
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/sdl/sdl-window.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/platform/sdl/sdl-window.cpp b/backends/platform/sdl/sdl-window.cpp index 39c5f8661f..dbfb765e51 100644 --- a/backends/platform/sdl/sdl-window.cpp +++ b/backends/platform/sdl/sdl-window.cpp @@ -78,6 +78,8 @@ void SdlWindow::setupIcon() { col = 0x00000000; else if (!strcmp(color, "black")) col = 0xFF000000; + else if (!strcmp(color, "gray20")) + col = 0xFF333333; else if (color[0] == '#') { if (sscanf(color + 1, "%06x", &col) != 1) { warning("Wrong format of color (%s)", color + 1); |