forked from enlightenment/efl
ecore-evas-drm: If not device name is passed in, use the device name
from drm. This assigns a name to the ecore_evas. If no device name was passed in, we will get the device name from the drm card. Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
bdf00c28b7
commit
baedf0223a
|
@ -156,6 +156,8 @@ ecore_evas_drm_new_internal(const char *device, unsigned int parent, int x, int
|
|||
/* set some engine properties */
|
||||
ee->driver = "drm";
|
||||
if (device) ee->name = strdup(device);
|
||||
else
|
||||
ee->name = strdup(ecore_drm_device_name_get(dev));
|
||||
|
||||
if (w < 1) w = 1;
|
||||
if (h < 1) h = 1;
|
||||
|
|
Loading…
Reference in New Issue