Michel Dänzer <[email protected]> writes:

> You could start by converting the modesetting driver. :)

From 82f38c0be57688220464d4a0c5bafe858d9eab7e Mon Sep 17 00:00:00 2001
From: Keith Packard <[email protected]>
Date: Fri, 27 May 2016 02:02:48 -0700
Subject: [PATCH xserver] modesetting: Use new xf86CurrentCursor API

Use this instead of the (now deprecated) cursor pointer in the
xf86CrtcConfigRec.

Signed-off-by: Keith Packard <[email protected]>
---
 hw/xfree86/drivers/modesetting/drmmode_display.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/hw/xfree86/drivers/modesetting/drmmode_display.c b/hw/xfree86/drivers/modesetting/drmmode_display.c
index 2cda523..8ca0c26 100644
--- a/hw/xfree86/drivers/modesetting/drmmode_display.c
+++ b/hw/xfree86/drivers/modesetting/drmmode_display.c
@@ -553,8 +553,7 @@ drmmode_set_cursor(xf86CrtcPtr crtc)
     int ret;
 
     if (use_set_cursor2) {
-        xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(crtc->scrn);
-        CursorPtr cursor = xf86_config->cursor;
+        CursorPtr cursor = xf86CurrentCursor(crtc->scrn->pScreen);
 
         ret =
             drmModeSetCursor2(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id,
-- 
2.8.1

-- 
-keith

Attachment: signature.asc
Description: PGP signature

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to