From e84e71ed34f359f616a1ddbbd2c9cd54e978022e Mon Sep 17 00:00:00 2001 From: Matan Bareket Date: Tue, 2 Apr 2019 13:55:49 -0400 Subject: 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 --- backends/platform/sdl/sdl-window.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backends/platform/sdl') 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); -- cgit v1.2.3