summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-11-17 12:07:46 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-11-17 12:07:46 +0900
commit753c359e61994833f3900ebe74acdfba283dad08 (patch)
treee34eb88ac59930c5162a29cbe35c2704c7884352 /src
parent80d666e7a461c8c76adb01788dc746146bf8ab35 (diff)
ecore_fb - fix fb size get to use evas env vars for fb device
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_fb/ecore_fb.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/ecore_fb/ecore_fb.c b/src/lib/ecore_fb/ecore_fb.c
index ff96ac8a77..5e16f660c2 100644
--- a/src/lib/ecore_fb/ecore_fb.c
+++ b/src/lib/ecore_fb/ecore_fb.c
@@ -108,7 +108,14 @@ _ecore_fb_size_get(int *w, int *h)
108 struct fb_var_screeninfo fb_var; 108 struct fb_var_screeninfo fb_var;
109 int fb; 109 int fb;
110 110
111 fb = open("/dev/fb0", O_RDWR); 111 if (getenv("EVAS_FB_DEV"))
112 fb = open(getenv("EVAS_FB_DEV"), O_RDWR);
113 else
114 {
115 fb = open("/dev/fb/0", O_RDWR);
116 if (fb == -1)
117 fb = open("/dev/fb0", O_RDWR);
118 }
112 if (fb < 0) 119 if (fb < 0)
113 goto exit; 120 goto exit;
114 121