summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2008-05-08 10:26:37 +1000
committerDave Airlie <airlied@linux.ie>2008-05-08 10:26:37 +1000
commit9d1db4ced1cd8e9e23f9ae945625a54d4f7f3721 (patch)
tree79aee2bf6b0f0f6b5a62c32c6c7a7fe4daa133e4
parentef204fb5c24f9bd09192a9abebad6a06dd0b88db (diff)
cursor: pass handle not BO.
-rw-r--r--libdrm/xf86drmMode.c7
-rw-r--r--libdrm/xf86drmMode.h2
2 files changed, 3 insertions, 6 deletions
diff --git a/libdrm/xf86drmMode.c b/libdrm/xf86drmMode.c
index f86cc48f..605377dd 100644
--- a/libdrm/xf86drmMode.c
+++ b/libdrm/xf86drmMode.c
@@ -308,7 +308,7 @@ int drmModeSetCrtc(int fd, uint32_t crtcId, uint32_t bufferId,
* Cursor manipulation
*/
-int drmModeSetCursor(int fd, uint32_t crtcId, drmBO *bo, uint32_t width, uint32_t height)
+int drmModeSetCursor(int fd, uint32_t crtcId, uint32_t bo_handle, uint32_t width, uint32_t height)
{
struct drm_mode_cursor arg;
@@ -316,10 +316,7 @@ int drmModeSetCursor(int fd, uint32_t crtcId, drmBO *bo, uint32_t width, uint32_
arg.crtc = crtcId;
arg.width = width;
arg.height = height;
- if (bo)
- arg.handle = bo->handle;
- else
- arg.handle = 0;
+ arg.handle = bo_handle;
return ioctl(fd, DRM_IOCTL_MODE_CURSOR, &arg);
}
diff --git a/libdrm/xf86drmMode.h b/libdrm/xf86drmMode.h
index edf9efee..e5a6ee92 100644
--- a/libdrm/xf86drmMode.h
+++ b/libdrm/xf86drmMode.h
@@ -208,7 +208,7 @@ int drmModeSetCrtc(int fd, uint32_t crtcId, uint32_t bufferId,
/**
* Set the cursor on crtc
*/
-int drmModeSetCursor(int fd, uint32_t crtcId, drmBO *bo, uint32_t width, uint32_t height);
+int drmModeSetCursor(int fd, uint32_t crtcId, uint32_t bo_handle, uint32_t width, uint32_t height);
/**
* Move the cursor on crtc