summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2_plane.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-05-03 08:01:35 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-05-05 12:53:24 -0500
commit0aac2db93a8ae3d47fb4904b32d6962facae7d3d (patch)
treecc857638994faa9ff1774492679d6807aa3ff46c /src/lib/ecore_drm2/ecore_drm2_plane.c
parent769271a66a97cf7b938ba960a8aff827257f2853 (diff)
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.
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2_plane.c')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_plane.c2
1 files changed, 1 insertions, 1 deletions
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)
64 _plane_cursor_size_get(output->fd, &cw, &ch); 64 _plane_cursor_size_get(output->fd, &cw, &ch);
65 65
66 /* check that this fb can fit in cursor plane */ 66 /* check that this fb can fit in cursor plane */
67 if ((fb->w > cw) || (fb->h > ch)) 67 if ((fb->w != cw) || (fb->h != ch))
68 continue; 68 continue;
69 69
70 /* if we reach here, this FB can go on the cursor plane */ 70 /* if we reach here, this FB can go on the cursor plane */