mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-14 05:14:45 +00:00
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
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:
parent
cef7cda851
commit
5df7b1fa5c
1 changed files with 5 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue