forked from enlightenment/efl
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:
parent
56b4113668
commit
b87cbf8fe4
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue