modesetting: Fix uninitialized drmmode_crtc->cursor_{width,height}
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run

Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
stefan11111 2025-08-20 19:45:06 +03:00 • committed by Enrico Weigelt, metux IT consult
commit 5df7b1fa5c

View file

@ -1827,9 +1827,6 @@ drmmode_set_cursor(xf86CrtcPtr crtc, int width, int height)
/* fallback to swcursor */
return FALSE;
drmmode_crtc->cursor_width = width;
drmmode_crtc->cursor_height = height;
return TRUE;
}
@ -1896,10 +1893,11 @@ drmmode_load_cursor_argb_check(xf86CrtcPtr crtc, CARD32 *image)
for (; i < max_width * max_height; i++)
ptr[i++] = 0;
if (drmmode_crtc->cursor_up)
return drmmode_set_cursor(crtc, width, height);
else
return TRUE;
/* set cursor width and height here for drmmode_show_cursor */
drmmode_crtc->cursor_width = width;
drmmode_crtc->cursor_height = height;
return drmmode_crtc->cursor_up ? drmmode_set_cursor(crtc, width, height) : TRUE;
}
static void