this makes evas ane ecore_fb agree on how to address the fb device.
this fixes terminology in fb on optimus (dual gpu) setups where you may
have to declare the exact fb to use (there are 2 of them, not just
fb0) and makes things consistent at least. this also should fix T253
struct fb_var_screeninfo fb_var;
int fb;
- fb = open("/dev/fb0", O_RDWR);
+ if (getenv("EVAS_FB_DEV"))
+ fb = open(getenv("EVAS_FB_DEV"), O_RDWR);
+ else
+ {
+ fb = open("/dev/fb/0", O_RDWR);
+ if (fb == -1)
+ fb = open("/dev/fb0", O_RDWR);
+ }
if (fb < 0)
goto exit;