diff options
author | Chris Michael <cp.michael@samsung.com> | 2018-02-21 14:21:01 -0500 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2018-05-04 06:36:47 -0400 |
commit | 063b17eb83f458c3af0be212a6f74e0c8ae2deca (patch) | |
tree | 3a8c9759560dc38b5544a9f854968ab6b4135a13 | |
parent | 362133b86bef586cda20e5d78393b282cc1697ab (diff) | |
download | efl-063b17eb83f458c3af0be212a6f74e0c8ae2deca.tar.gz |
ecore-drm2: Pass 'output' as data during atomic commits
With the changes coming to ecore_evas_drm, we need to be passing the
output as data to these functions so that in the callbacks, we have
the output to work with so we can properly pass the output rectangle
to things like ecore_animator_tick
@fix
-rw-r--r-- | src/lib/ecore_drm2/ecore_drm2_outputs.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c index 5f332e752d..a5b9e3d38d 100644 --- a/src/lib/ecore_drm2/ecore_drm2_outputs.c +++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c @@ -1284,8 +1284,8 @@ _output_mode_atomic_set(Ecore_Drm2_Output *output, Ecore_Drm2_Output_Mode *mode) goto err; } - ret = sym_drmModeAtomicCommit(output->fd, req, DRM_MODE_ATOMIC_ALLOW_MODESET, - output->user_data); + ret = sym_drmModeAtomicCommit(output->fd, req, + DRM_MODE_ATOMIC_ALLOW_MODESET, output); if (ret < 0) { ERR("Failed to commit atomic Mode: %m"); @@ -1531,8 +1531,7 @@ ecore_drm2_output_rotation_set(Ecore_Drm2_Output *output, int rotation) pstate->rotation.id, rotation); if (res < 0) goto err; - res = sym_drmModeAtomicCommit(output->fd, req, flags, - output->user_data); + res = sym_drmModeAtomicCommit(output->fd, req, flags, output); if (res < 0) goto err; else |