summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2014-02-28 12:04:30 +1000
committerDave Airlie <airlied@redhat.com>2014-02-28 12:04:30 +1000
commitc9d377a19201973012bb6bbb07e3b8c3e9c3b856 (patch)
tree79320c18e7c7358bbfc042920303033314dbf3cc
parentb8840f5442f9fbd8ce47ab2dd555b75cf4bb114a (diff)
modesetting: fix cursor rendering with hotspots.
older kernels report EINVAL not ENOSYS, doh. Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--src/drmmode_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 5b796e0..28a4abb 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -500,7 +500,7 @@ drmmode_show_cursor (xf86CrtcPtr crtc)
CursorPtr cursor = xf86_config->cursor;
int ret;
ret = drmModeSetCursor2(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id, handle, ms->cursor_width, ms->cursor_height, cursor->bits->xhot, cursor->bits->yhot);
- if (ret == -ENOSYS)
+ if (ret == -EINVAL)
use_set_cursor2 = FALSE;
else
return;