From 0aac2db93a8ae3d47fb4904b32d6962facae7d3d Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Wed, 3 May 2017 08:01:35 -0500 Subject: [PATCH] ecore_drm2: Use stricter cursor plane size check Unfortunately the plane sized returned from the cursor plane query isn't a limit, it's an exact size. Sometimes you can use a different size, but that's completely hardware dependent - so stick to the advertised size. --- src/lib/ecore_drm2/ecore_drm2_plane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ecore_drm2/ecore_drm2_plane.c b/src/lib/ecore_drm2/ecore_drm2_plane.c index a1f0444565..6f2666d366 100644 --- a/src/lib/ecore_drm2/ecore_drm2_plane.c +++ b/src/lib/ecore_drm2/ecore_drm2_plane.c @@ -64,7 +64,7 @@ ecore_drm2_plane_assign(Ecore_Drm2_Output *output, Ecore_Drm2_Fb *fb) _plane_cursor_size_get(output->fd, &cw, &ch); /* check that this fb can fit in cursor plane */ - if ((fb->w > cw) || (fb->h > ch)) + if ((fb->w != cw) || (fb->h != ch)) continue; /* if we reach here, this FB can go on the cursor plane */