Effective X boundary coordinates for mirroring were not initialized with real 
values prior of swapping MAX and MIN values around if MIN>MAX.

Signed-off-by: Antti Peltonen <[email protected]>
---
 src/xf86Elo.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/xf86Elo.c b/src/xf86Elo.c
index dea4f48..98f5c9d 100644
--- a/src/xf86Elo.c
+++ b/src/xf86Elo.c
@@ -380,6 +380,8 @@ xf86EloReadInput(InputInfoPtr       pInfo)
             eff_min_y = priv->max_y;
           }
 
+          eff_max_x = priv->max_x;
+          eff_min_x = priv->min_x;
           if (priv->min_x > priv->max_x) {
             /* inverted x axis */
             cur_x = priv->max_x - cur_x + priv->min_x;
-- 
1.8.1.4

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to