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
This commit is contained in:
Matan Bareket 2019-04-02 13:55:49 -04:00
parent bba5513a2d
commit e84e71ed34

View file

@ -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);