modesetting: fix cursor rendering with hotspots.
older kernels report EINVAL not ENOSYS, doh. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
2029c028fc
commit
98f59a33df
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user