diff options
author | Jakob Bornecrantz <jakob@aurora.(none)> | 2008-01-30 15:47:26 +0100 |
---|---|---|
committer | Jakob Bornecrantz <jakob@aurora.(none)> | 2008-01-30 15:47:26 +0100 |
commit | 841ef9eb8da8058d6495e9f8e1b14af2709dfaa1 (patch) | |
tree | 5651372b901eda9d4f7b8c8c23a57ca93a73ef91 /libdrm | |
parent | b9b6f9234dd9e702a7d58978cbd88dc297b2b51a (diff) |
ModeFB demo now display cursor
Diffstat (limited to 'libdrm')
-rw-r--r-- | libdrm/xf86drmMode.c | 5 |
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); } |