diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2013-07-08 09:10:06 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2013-07-08 09:10:06 +0000 |
commit | b17d22fdf23ce32daab0476afcd2f51ec9f7a191 (patch) | |
tree | 71d5d4f0367aa9692605c51591058fd864556aac /lib/libdrm/xf86drmMode.c | |
parent | 08b200a0ba8e2312f42cab0cdb92976cfed80331 (diff) |
update to libdrm 2.4.46
ok mpi@ kettenis@
Diffstat (limited to 'lib/libdrm/xf86drmMode.c')
-rw-r--r-- | lib/libdrm/xf86drmMode.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/libdrm/xf86drmMode.c b/lib/libdrm/xf86drmMode.c index c2b777abe..27b2f155a 100644 --- a/lib/libdrm/xf86drmMode.c +++ b/lib/libdrm/xf86drmMode.c @@ -400,6 +400,21 @@ int drmModeSetCursor(int fd, uint32_t crtcId, uint32_t bo_handle, uint32_t width return DRM_IOCTL(fd, DRM_IOCTL_MODE_CURSOR, &arg); } +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) +{ + struct drm_mode_cursor2 arg; + + arg.flags = DRM_MODE_CURSOR_BO; + arg.crtc_id = crtcId; + arg.width = width; + arg.height = height; + arg.handle = bo_handle; + arg.hot_x = hot_x; + arg.hot_y = hot_y; + + return DRM_IOCTL(fd, DRM_IOCTL_MODE_CURSOR2, &arg); +} + int drmModeMoveCursor(int fd, uint32_t crtcId, int x, int y) { struct drm_mode_cursor arg; |