diff options
author | Christopher Michael <cp.michael@samsung.com> | 2019-03-22 12:41:21 -0400 |
---|---|---|
committer | Christopher Michael <cp.michael@samsung.com> | 2019-03-22 12:41:21 -0400 |
commit | 828984393e82fe30b1d2a29a47e806cc827070a4 (patch) | |
tree | 84c5a03b09963c3bd84751db721ff60fb52993c2 /src/lib/ecore_drm2/ecore_drm2_outputs.c | |
parent | 9c08fe29d49dc53a679cdfd2dcb252928e169f99 (diff) |
ecore-drm2: Add API function to return output rotation
Summary:
Small patch to add an API function which can be used to return a given
output's rotation value
ref T7690
@feature
Depends on D8113
Reviewers: raster, cedric, zmike, stefan_schmidt, bu5hm4n
Reviewed By: cedric
Subscribers: cedric
Tags: #efl, #do_not_merge
Maniphest Tasks: T7690
Differential Revision: https://phab.enlightenment.org/D8114
Diffstat (limited to '')
-rw-r--r-- | src/lib/ecore_drm2/ecore_drm2_outputs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c index 7642025ef4..c7540236f5 100644 --- a/src/lib/ecore_drm2/ecore_drm2_outputs.c +++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c | |||
@@ -1576,6 +1576,13 @@ err: | |||
1576 | return ret; | 1576 | return ret; |
1577 | } | 1577 | } |
1578 | 1578 | ||
1579 | EAPI int | ||
1580 | ecore_drm2_output_rotation_get(Ecore_Drm2_Output *output) | ||
1581 | { | ||
1582 | EINA_SAFETY_ON_NULL_RETURN_VAL(output, -1); | ||
1583 | return output->rotation; | ||
1584 | } | ||
1585 | |||
1579 | EAPI unsigned int | 1586 | EAPI unsigned int |
1580 | ecore_drm2_output_subpixel_get(const Ecore_Drm2_Output *output) | 1587 | ecore_drm2_output_subpixel_get(const Ecore_Drm2_Output *output) |
1581 | { | 1588 | { |