summaryrefslogtreecommitdiff
path: root/libdrm
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@aurora.(none)>2008-01-30 15:47:26 +0100
committerJakob Bornecrantz <jakob@aurora.(none)>2008-01-30 15:47:26 +0100
commit841ef9eb8da8058d6495e9f8e1b14af2709dfaa1 (patch)
tree5651372b901eda9d4f7b8c8c23a57ca93a73ef91 /libdrm
parentb9b6f9234dd9e702a7d58978cbd88dc297b2b51a (diff)
ModeFB demo now display cursor
Diffstat (limited to 'libdrm')
-rw-r--r--libdrm/xf86drmMode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libdrm/xf86drmMode.c b/libdrm/xf86drmMode.c
index 86572872..681ad417 100644
--- a/libdrm/xf86drmMode.c
+++ b/libdrm/xf86drmMode.c
@@ -329,7 +329,10 @@ int drmModeSetCursor(int fd, uint32_t crtcId, drmBO *bo, uint32_t width, uint32_
arg.crtc = crtcId;
arg.width = width;
arg.height = height;
- arg.handle = bo->handle;
+ if (bo)
+ arg.handle = bo->handle;
+ else
+ arg.handle = 0;
return ioctl(fd, DRM_IOCTL_MODE_CURSOR, &arg);
}