devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=205c829a1180939dad516a56d3bf94127f0a97d0
commit 205c829a1180939dad516a56d3bf94127f0a97d0 Author: Chris Michael <cp.mich...@samsung.com> Date: Mon Mar 27 10:56:50 2017 -0400 ecore-drm2: Store cursor size on device As we will need these values later to determine if an FBO can go onto the cursor plane, we should store this in the device structure to avoid having to refetch them later. @fix Signed-off-by: Chris Michael <cp.mich...@samsung.com> --- src/lib/ecore_drm2/ecore_drm2_device.c | 12 ++++++++++-- src/lib/ecore_drm2/ecore_drm2_private.h | 5 +++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c index 6d7c1ff..250a596 100644 --- a/src/lib/ecore_drm2/ecore_drm2_device.c +++ b/src/lib/ecore_drm2/ecore_drm2_device.c @@ -722,13 +722,21 @@ ecore_drm2_device_cursor_size_get(Ecore_Drm2_Device *device, int *width, int *he { *width = 64; ret = sym_drmGetCap(device->fd, DRM_CAP_CURSOR_WIDTH, &caps); - if (ret == 0) *width = caps; + if (ret == 0) + { + device->cursor.width = caps; + *width = caps; + } } if (height) { *height = 64; ret = sym_drmGetCap(device->fd, DRM_CAP_CURSOR_HEIGHT, &caps); - if (ret == 0) *height = caps; + if (ret == 0) + { + device->cursor.height = caps; + *height = caps; + } } } diff --git a/src/lib/ecore_drm2/ecore_drm2_private.h b/src/lib/ecore_drm2/ecore_drm2_private.h index 60efbf7..80804ec 100644 --- a/src/lib/ecore_drm2/ecore_drm2_private.h +++ b/src/lib/ecore_drm2/ecore_drm2_private.h @@ -795,6 +795,11 @@ struct _Ecore_Drm2_Device uint32_t width, height; } min, max; + struct + { + int width, height; + } cursor; + Eeze_Udev_Watch *watch; Ecore_Event_Handler *active_hdlr; Ecore_Event_Handler *device_change_hdlr; --