Lines 1274-1287
drmmode_show_cursor (xf86CrtcPtr crtc)
Link Here
|
1274 |
arg.hot_x = xhot; |
1274 |
arg.hot_x = xhot; |
1275 |
arg.hot_y = yhot; |
1275 |
arg.hot_y = yhot; |
1276 |
|
1276 |
|
1277 |
ret = drmIoctl(pRADEONEnt->fd, DRM_IOCTL_MODE_CURSOR2, &arg); |
1277 |
ret = drmModeSetCursor2(pRADEONEnt->fd, arg.crtc_id, arg.handle, |
|
|
1278 |
info->cursor_w, info->cursor_h, xhot, yhot); |
1278 |
if (ret == -EINVAL) |
1279 |
if (ret == -EINVAL) |
1279 |
use_set_cursor2 = FALSE; |
1280 |
use_set_cursor2 = FALSE; |
1280 |
else |
1281 |
else |
1281 |
return; |
1282 |
return; |
1282 |
} |
1283 |
} |
1283 |
|
1284 |
|
1284 |
drmIoctl(pRADEONEnt->fd, DRM_IOCTL_MODE_CURSOR, &arg); |
1285 |
drmModeSetCursor(pRADEONEnt->fd, arg.crtc_id, arg.handle, |
|
|
1286 |
info->cursor_w, info->cursor_h); |
1285 |
} |
1287 |
} |
1286 |
|
1288 |
|
1287 |
/* Xorg expects a non-NULL return value from drmmode_crtc_shadow_allocate, and |
1289 |
/* Xorg expects a non-NULL return value from drmmode_crtc_shadow_allocate, and |