ecore_drm2: Remove ecore_drm2_output_crtc_size_get()

Replaced with ecore_drm2_output_info_get()
This commit is contained in:
Derek Foreman 2017-08-08 12:03:12 -05:00
parent 846db0e0e7
commit 5ecfe6a8b5
3 changed files with 1 additions and 32 deletions

View File

@ -515,18 +515,6 @@ EAPI unsigned int ecore_drm2_output_crtc_get(Ecore_Drm2_Output *output);
*/
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
*

View File

@ -1146,25 +1146,6 @@ ecore_drm2_output_latest_fb_get(Ecore_Drm2_Output *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)
{

View File

@ -940,7 +940,7 @@ _ecore_evas_new_internal(const char *device, int x, int y, int w, int h, Eina_Bo
(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);