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:
parent
bba5513a2d
commit
e84e71ed34
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue