ecore-drm: Fix absolute motion coordinate calculation

@bugfix: When calculating center point for absolute motion, use the
proper min_y value for calculating Y axis

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-03-20 07:13:52 +00:00
parent 56b4113668
commit b87cbf8fe4
1 changed files with 1 additions and 1 deletions

View File

@ -525,7 +525,7 @@ _device_process_flush(Ecore_Drm_Evdev *dev, unsigned int timestamp)
{
/* start first motion as centered I guess? */
dev->mouse.x = (dev->abs.min_x + dev->abs.max_x) / 2;
dev->mouse.y = (dev->abs.max_x + dev->abs.max_y) / 2;
dev->mouse.y = (dev->abs.min_y + dev->abs.max_y) / 2;
}
dev->mouse.x += (dev->abs.x[0] - dev->abs.x[1]);