From 1625fc9b919c777f888850c33196ca4cf62a18f3 Mon Sep 17 00:00:00 2001 From: Christopher Michael 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. SVN revision: 73351 --- legacy/ecore/src/lib/ecore_wayland/ecore_wl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/legacy/ecore/src/lib/ecore_wayland/ecore_wl.c b/legacy/ecore/src/lib/ecore_wayland/ecore_wl.c index 3a3250da3b..c21c102e74 100644 --- a/legacy/ecore/src/lib/ecore_wayland/ecore_wl.c +++ b/legacy/ecore/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; }