diff --git a/hw/xfree86/drivers/video/modesetting/drmmode_display.c b/hw/xfree86/drivers/video/modesetting/drmmode_display.c index 6f308088a..1d86f42f2 100644 --- a/hw/xfree86/drivers/video/modesetting/drmmode_display.c +++ b/hw/xfree86/drivers/video/modesetting/drmmode_display.c @@ -4899,9 +4899,9 @@ drmmode_create_initial_bos(ScrnInfoPtr pScrn, drmmode_ptr drmmode) * something has gone terribly wrong. */ assert(cursor.num_dimensions); - /* Use the minimum available size. */ - width = cursor.dimensions[0].width; - height = cursor.dimensions[0].height; + /* Use the maximum available size. */ + width = cursor.dimensions[cursor.num_dimensions - 1].width; + height = cursor.dimensions[cursor.num_dimensions - 1].height; /* We take the minimum of the sizes here * so that we don't get a cursor glyph larger