xf86-video-modesetting: src/drmmode_display.c
Dave Airlie
airlied at kemper.freedesktop.org
Thu Feb 27 18:04:59 PST 2014
src/drmmode_display.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit c9d377a19201973012bb6bbb07e3b8c3e9c3b856
Author: Dave Airlie <airlied at redhat.com>
Date: Fri Feb 28 12:04:30 2014 +1000
modesetting: fix cursor rendering with hotspots.
older kernels report EINVAL not ENOSYS, doh.
Signed-off-by: Dave Airlie <airlied at redhat.com>
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;
More information about the xorg-commit
mailing list