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:
Chris Michael 2014-03-12 10:17:00 +00:00
parent bdf00c28b7
commit baedf0223a
1 changed files with 2 additions and 0 deletions

View File

@ -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;