Support modular X11 path to rgb.txt patch by (Ville Skyttä - scop from SF-bugtracker)
authorVille Skyttä <scop@users.sourceforge.net>
Tue, 30 May 2006 09:21:58 +0000 (09:21 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 30 May 2006 09:21:58 +0000 (09:21 +0000)
Originally committed as revision 5429 to svn://svn.ffmpeg.org/ffmpeg/trunk

vhook/imlib2.c

index 1e6da37..35a1925 100644 (file)
@@ -144,7 +144,9 @@ int Configure(void **ctxp, int argc, char *argv[])
         char buff[256];
         int done = 0;
 
-        f = fopen("/usr/lib/X11/rgb.txt", "r");
+        f = fopen("/usr/share/X11/rgb.txt", "r");
+        if (!f)
+            f = fopen("/usr/lib/X11/rgb.txt", "r");
         if (!f) {
             fprintf(stderr, "Failed to find rgb.txt\n");
             return -1;