summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2_device.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-01-18 10:38:01 -0500
committerChris Michael <cp.michael@samsung.com>2017-01-18 10:38:01 -0500
commitca194584d5e9072fa0640d810afa68779beb030b (patch)
treedb188884b1a00d1802e8f17ac9f3d787e4dd0f10 /src/lib/ecore_drm2/ecore_drm2_device.c
parentf32268ad1b4ccc8ecbf4c14baad4efc6601c89dd (diff)
ecore-drm2: Add API function to return supported rotations of an output
Small patch to add an API function which can be used to return the supported rotations of a given output. This is used inside the Enlightenment wl_drm module to determine if rotations is supported on an output. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2_device.c')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c
index a6e6d22cb2..0c5cb15254 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -454,6 +454,7 @@ _drm2_atomic_state_plane_fill(Ecore_Drm2_Plane_State *pstate, int fd)
454 { 454 {
455 int r = -1; 455 int r = -1;
456 456
457 DBG("\t\t\tRotation: %s", prop->enums[k].name);
457 if (!strcmp(prop->enums[k].name, "rotate-0")) 458 if (!strcmp(prop->enums[k].name, "rotate-0"))
458 r = ECORE_DRM2_ROTATION_NORMAL; 459 r = ECORE_DRM2_ROTATION_NORMAL;
459 else if (!strcmp(prop->enums[k].name, "rotate-90")) 460 else if (!strcmp(prop->enums[k].name, "rotate-90"))