Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/imlib2

Dir     : e17/libs/imlib2/src/modules/loaders


Modified Files:
        loader_xpm.c 


Log Message:


round as a #define - and xpm loader has extra rgb.txt sourc

===================================================================
RCS file: /cvs/e/e17/libs/imlib2/src/modules/loaders/loader_xpm.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- loader_xpm.c        9 Apr 2007 12:55:29 -0000       1.7
+++ loader_xpm.c        25 Aug 2007 02:07:08 -0000      1.8
@@ -52,12 +52,14 @@
    /* look in rgb txt database */
    if (!rgb_txt)
 #ifndef __EMX__
-      rgb_txt = fopen("/usr/X11R6/lib/X11/rgb.txt", "r");
+     rgb_txt = fopen("/usr/X11R6/lib/X11/rgb.txt", "r");
+   if (!rgb_txt)
+     rgb_txt = fopen("/usr/openwin/lib/X11/rgb.txt", "r");
 #else
-      rgb_txt = fopen(__XOS2RedirRoot("/XFree86/lib/X11/rgb.txt"), "rt");
+   rgb_txt = fopen(__XOS2RedirRoot("/XFree86/lib/X11/rgb.txt"), "rt");
 #endif
    if (!rgb_txt)
-      return;
+     return;
    fseek(rgb_txt, 0, SEEK_SET);
    while (fgets(buf, 4000, rgb_txt))
      {



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to