[PATCH elographics 2/2] Fix X coordinate effective value prior of min->max swap.
Antti Peltonen
antti.peltonen at iki.fi
Thu Jul 25 10:33:16 PDT 2013
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 <antti.peltonen at iki.fi>
---
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
More information about the xorg-devel
mailing list