From 22a0e90712a9bdcc7c3c58e2299a9c1f06a86ba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 30 May 2006 09:21:58 +0000 Subject: [PATCH] =?UTF-8?q?Support=20modular=20X11=20path=20to=20rgb.txt?= =?UTF-8?q?=20patch=20by=20(Ville=20Skytt=C3=A4=20-=20scop=20from=20SF-bug?= =?UTF-8?q?tracker)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 5429 to svn://svn.ffmpeg.org/ffmpeg/trunk --- vhook/imlib2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vhook/imlib2.c b/vhook/imlib2.c index 1e6da37a40..35a19252d3 100644 --- a/vhook/imlib2.c +++ b/vhook/imlib2.c @@ -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;