fix from Hans de Goede to look for /usr/share/X11/rgb.txt as most modern systems are using now

SVN revision: 34819
This commit is contained in:
Mike Frysinger 2008-06-13 22:39:27 +00:00
parent 9c62d07da3
commit a6fa566a3d
1 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,8 @@ xpm_parse_color(char *color, int *r, int *g, int *b)
/* look in rgb txt database */
if (!rgb_txt)
#ifndef __EMX__
rgb_txt = fopen("/usr/share/X11/rgb.txt", "r");
if (!rgb_txt)
rgb_txt = fopen("/usr/X11R6/lib/X11/rgb.txt", "r");
if (!rgb_txt)
rgb_txt = fopen("/usr/openwin/lib/X11/rgb.txt", "r");