The following little patch adds support for the "new style" name of the
framebuffer device with a fall-back to the old one.
("/dev/fb/0" vs. "/dev/fb0")

Regards,
Bernhard

--- evas-cvs-orig/src/lib/engines/fb/evas_fb_main.c
+++ evas-cvs-modified/src/lib/engines/fb/evas_fb_main.c
@@ -450,8 +450,14 @@
 #if 0   
    if (vt != 0) fb_setvt(vt);
 #endif
-   sprintf(dev, "/dev/fb%i", device);
-   if ((fb = open(dev, O_RDWR)) == -1) 
+   sprintf(dev, "/dev/fb/%i", device);
+   fb = open(dev, O_RDWR);
+   if ( fb == -1 )
+     {
+       sprintf(dev, "/dev/fb%i", device);
+       fb = open(dev, O_RDWR);
+     }
+   if (fb == -1)
      {  
        fprintf(stderr,"open %s: %s\n", dev, strerror(errno));
        fb_cleanup();


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
enlightenment-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to