EAPI Ecore_Drm2_Fb *ecore_drm2_output_latest_fb_get(Ecore_Drm2_Output *output);
/**
- * Get the size of the crtc for a given output
- *
- * @param output
- * @param *w
- * @param *h
- *
- * @ingroup Ecore_Drm2_Output_Group
- * @since 1.18
- */
-EAPI void ecore_drm2_output_crtc_size_get(Ecore_Drm2_Output *output, int *w, int *h);
-
-/**
* Get if a given output is marked as the primary output
*
* @param output
return output->next.fb;
}
-EAPI void
-ecore_drm2_output_crtc_size_get(Ecore_Drm2_Output *output, int *w, int *h)
-{
- drmModeCrtcPtr crtc;
-
- if (w) *w = 0;
- if (h) *h = 0;
-
- EINA_SAFETY_ON_NULL_RETURN(output);
-
- crtc = sym_drmModeGetCrtc(output->fd, output->crtc_id);
- if (!crtc) return;
-
- if (w) *w = crtc->width;
- if (h) *h = crtc->height;
-
- sym_drmModeFreeCrtc(crtc);
-}
-
EAPI Eina_Bool
ecore_drm2_output_primary_get(Ecore_Drm2_Output *output)
{
(Ecore_Event_Multi_Up_Cb)_ecore_evas_mouse_multi_up_process);
_ecore_event_window_direct_cb_set(ee->prop.window, _ecore_evas_input_direct_cb);
- ecore_drm2_output_crtc_size_get(edata->output, &mw, &mh);
+ ecore_drm2_output_info_get(edata->output, NULL, NULL, &mw, &mh, NULL);
ecore_drm2_device_calibrate(edata->dev, mw, mh);
ecore_drm2_device_pointer_max_set(edata->dev, mw, mh);