forked from enlightenment/efl
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:
parent
769271a66a
commit
0aac2db93a
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue