diff options
Diffstat (limited to 'xf86drmMode.c')
-rw-r--r-- | xf86drmMode.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/xf86drmMode.c b/xf86drmMode.c index f603ceb2..6b60c35e 100644 --- a/xf86drmMode.c +++ b/xf86drmMode.c | |||
@@ -400,6 +400,21 @@ int drmModeSetCursor(int fd, uint32_t crtcId, uint32_t bo_handle, uint32_t width | |||
400 | return DRM_IOCTL(fd, DRM_IOCTL_MODE_CURSOR, &arg); | 400 | return DRM_IOCTL(fd, DRM_IOCTL_MODE_CURSOR, &arg); |
401 | } | 401 | } |
402 | 402 | ||
403 | int drmModeSetCursor2(int fd, uint32_t crtcId, uint32_t bo_handle, uint32_t width, uint32_t height, int32_t hot_x, int32_t hot_y) | ||
404 | { | ||
405 | struct drm_mode_cursor2 arg; | ||
406 | |||
407 | arg.flags = DRM_MODE_CURSOR_BO; | ||
408 | arg.crtc_id = crtcId; | ||
409 | arg.width = width; | ||
410 | arg.height = height; | ||
411 | arg.handle = bo_handle; | ||
412 | arg.hot_x = hot_x; | ||
413 | arg.hot_y = hot_y; | ||
414 | |||
415 | return DRM_IOCTL(fd, DRM_IOCTL_MODE_CURSOR2, &arg); | ||
416 | } | ||
417 | |||
403 | int drmModeMoveCursor(int fd, uint32_t crtcId, int x, int y) | 418 | int drmModeMoveCursor(int fd, uint32_t crtcId, int x, int y) |
404 | { | 419 | { |
405 | struct drm_mode_cursor arg; | 420 | struct drm_mode_cursor arg; |