summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2016-11-28 10:01:39 -0500
committerChris Michael <cp.michael@samsung.com>2016-11-28 10:09:41 -0500
commit8d97b8b204364a978c7a8822b7fe7669c3c23e94 (patch)
tree212919e44a3fce081d1c40054a5f3c0519f49c3e /src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
parente0b61a35c593cc8cd6d13ead87d0e99336c6af8f (diff)
ecore-evas-drm: Implement ecore_evas_screen_dpi_get for drm canvas
Small patch to implement support for ecore_evas_screen_dpi get on the drm canvas. This will be used in enlightenment (e_scale) to get the screen dpi of the compositor canvas when we call e_scale_update. Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/modules/ecore_evas/engines/drm/ecore_evas_drm.c')
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
index 8132fd6b3a..d0f730a0f5 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -255,6 +255,15 @@ _drm_screen_geometry_get(const Ecore_Evas *ee, int *x, int *y, int *w, int *h)
255} 255}
256 256
257static void 257static void
258_drm_screen_dpi_get(const Ecore_Evas *ee, int *xdpi, int *ydpi)
259{
260 Ecore_Evas_Engine_Drm_Data *edata;
261
262 edata = ee->engine.data;
263 ecore_drm2_output_dpi_get(edata->output, xdpi, ydpi);
264}
265
266static void
258_drm_pointer_xy_get(const Ecore_Evas *ee, Evas_Coord *x, Evas_Coord *y) 267_drm_pointer_xy_get(const Ecore_Evas *ee, Evas_Coord *x, Evas_Coord *y)
259{ 268{
260 Ecore_Evas_Engine_Drm_Data *edata; 269 Ecore_Evas_Engine_Drm_Data *edata;
@@ -766,7 +775,7 @@ static Ecore_Evas_Engine_Func _ecore_evas_drm_engine_func =
766 _drm_render, 775 _drm_render,
767 776
768 _drm_screen_geometry_get, 777 _drm_screen_geometry_get,
769 NULL, //void (*fn_screen_dpi_get) (const Ecore_Evas *ee, int *xdpi, int *ydpi); 778 _drm_screen_dpi_get,
770 NULL, //void (*fn_msg_parent_send) (Ecore_Evas *ee, int maj, int min, void *data, int size); 779 NULL, //void (*fn_msg_parent_send) (Ecore_Evas *ee, int maj, int min, void *data, int size);
771 NULL, //void (*fn_msg_send) (Ecore_Evas *ee, int maj, int min, void *data, int size); 780 NULL, //void (*fn_msg_send) (Ecore_Evas *ee, int maj, int min, void *data, int size);
772 781