mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 16:44:52 +00:00
modesetting: Fix uninitialized drmmode_crtc->cursor_{width,height}
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
committed by
Enrico Weigelt, metux IT consult
parent
cef7cda851
commit
5df7b1fa5c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user