From 710db5cbd88e24df5b07b608ec815c0fd2c1e5cc Mon Sep 17 00:00:00 2001 From: devilhorns Date: Thu, 5 Jul 2012 14:06:20 +0000 Subject: [PATCH] Ecore_Wayland: Fix some typos in the doxygen with regard to dpi get. Add a comment pending future investigation with regard to how dpi is calculated here. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@73351 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_wayland/ecore_wl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/ecore_wayland/ecore_wl.c b/src/lib/ecore_wayland/ecore_wl.c index 3a3250d..c21c102 100644 --- a/src/lib/ecore_wayland/ecore_wl.c +++ b/src/lib/ecore_wayland/ecore_wl.c @@ -287,8 +287,8 @@ ecore_wl_pointer_xy_get(int *x, int *y) * Return the screen DPI * * This is a simplistic call to get DPI. It does not account for differing - * DPI in the x amd y axes nor does it accoutn for multihead or xinerama and - * xrander where different parts of the screen may have differen DPI etc. + * DPI in the x and y axes nor does it account for multihead or xinerama and + * xrandr where different parts of the screen may have different DPI etc. * * @return the general screen DPI (dots/pixels per inch). * @@ -307,6 +307,8 @@ ecore_wl_dpi_get(void) if (mw <= 0) return 75; w = _ecore_wl_disp->output->allocation.w; + /* FIXME: NB: Hrrrmmm, need to verify this. xorg code is using a different + * formula to calc this */ return (((w * 254) / mw) + 5) / 10; } -- 2.7.4