forked from enlightenment/efl
ecore-drm2: Set output rotation value
Summary: When we call ecore_drm2_output_rotation_set we need to store that value in the Output structure so that it can be checked later when needed. ref T7690 Depends on D8112 Reviewers: raster, cedric, zmike Reviewed By: cedric Subscribers: cedric Tags: #efl, #do_not_merge Maniphest Tasks: T7690 Differential Revision: https://phab.enlightenment.org/D8113
This commit is contained in:
parent
3315c0dd1c
commit
9c08fe29d4
|
@ -1518,10 +1518,12 @@ ecore_drm2_output_supported_rotations_get(Ecore_Drm2_Output *output)
|
|||
EAPI Eina_Bool
|
||||
ecore_drm2_output_rotation_set(Ecore_Drm2_Output *output, int rotation)
|
||||
{
|
||||
Eina_Bool ret = EINA_FALSE;
|
||||
Eina_Bool ret = EINA_TRUE;
|
||||
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(output, EINA_FALSE);
|
||||
|
||||
output->rotation = rotation;
|
||||
|
||||
#if 0
|
||||
/* XXX: Disable hardware plane rotation for now as this has broken
|
||||
* recently. The break happens because of an invalid argument,
|
||||
|
|
|
@ -208,6 +208,7 @@ struct _Ecore_Drm2_Output
|
|||
int fd;
|
||||
int pipe;
|
||||
int x, y, w, h, pw, ph;
|
||||
int rotation;
|
||||
|
||||
long fallback_sec, fallback_usec;
|
||||
|
||||
|
|
Loading…
Reference in New Issue