diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-05-01 12:03:44 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-05-01 12:04:26 +0930 |
commit | 0133d754c10341ca5b572beeee72488b8f5ae8a8 (patch) | |
tree | 31c73d27c584097806e5ee06b22b6aa814babe35 /src | |
parent | d639f87a52aac179ef9d0908c012e79baf5fa245 (diff) |
Don't divide by zero. #14902
X.Org Bug 14902 <http://bugs.freedesktop.org/show_bug.cgi?id=14902>
Diffstat (limited to 'src')
-rw-r--r-- | src/xf86Elo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xf86Elo.c b/src/xf86Elo.c index d52c712..2a76849 100644 --- a/src/xf86Elo.c +++ b/src/xf86Elo.c @@ -723,6 +723,9 @@ xf86EloConvert(LocalDevicePtr local, DBG(3, ErrorF("EloConvert: Screen(%d) - v0(%d), v1(%d)\n", priv->screen_no, v0, v1)); + if (width == 0) width = 1; + if (height == 0) height = 1; + if (priv->swap_axes) { input_x = v1; input_y = v0; |