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.
This commit is contained in:
Derek Foreman 2017-05-03 08:01:35 -05:00
parent 769271a66a
commit 0aac2db93a
1 changed files with 1 additions and 1 deletions

View File

@ -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 */