/* find lowest zpos graphic type layer */
EINA_LIST_FOREACH(output->planes, p_l, ep)
{
- if (e_plane_type_get(ep) == E_PLANE_TYPE_GRAPHIC)
- {
- Eina_List *formats = NULL;
- Eina_List *formats_l = NULL;
- Eina_Bool available_rgb = EINA_FALSE;
- tbm_format *format;
-
- formats = e_plane_available_tbm_formats_get(ep);
- if (!formats) continue;
-
- EINA_LIST_FOREACH(formats, formats_l, format)
- {
- if (*format == TBM_FORMAT_ARGB8888 ||
- *format == TBM_FORMAT_XRGB8888)
- {
- available_rgb = EINA_TRUE;
- break;
- }
- }
-
- if (!available_rgb) continue;
-
- return ep;
- }
+ if (ep->is_primary)
+ return ep;
}
return NULL;