diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/ecore_drm/ecore_drm_output.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_output.c b/src/lib/ecore_drm/ecore_drm_output.c index c5fed37f6b..9dd4fd3e5c 100644 --- a/src/lib/ecore_drm/ecore_drm_output.c +++ b/src/lib/ecore_drm/ecore_drm_output.c | |||
@@ -1481,3 +1481,22 @@ ecore_drm_output_mode_set(Ecore_Drm_Output *output, Ecore_Drm_Output_Mode *mode, | |||
1481 | 1481 | ||
1482 | return ret; | 1482 | return ret; |
1483 | } | 1483 | } |
1484 | |||
1485 | EAPI unsigned int | ||
1486 | ecore_drm_output_supported_rotations_get(Ecore_Drm_Output *output, Ecore_Drm_Plane_Type type) | ||
1487 | { | ||
1488 | Ecore_Drm_Plane *plane; | ||
1489 | Eina_List *l; | ||
1490 | unsigned int rot = -1; | ||
1491 | |||
1492 | EINA_SAFETY_ON_NULL_RETURN_VAL(output, rot); | ||
1493 | |||
1494 | EINA_LIST_FOREACH(output->planes, l, plane) | ||
1495 | { | ||
1496 | if (plane->type != type) continue; | ||
1497 | rot = plane->supported_rotations; | ||
1498 | break; | ||
1499 | } | ||
1500 | |||
1501 | return rot; | ||
1502 | } | ||