[PATCH 05/30] dix: Stop setting dflt for nothing.
Cyril Brulebois
kibi at debian.org
Fri May 20 08:35:15 PDT 2011
Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
dix/getevents.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/dix/getevents.c b/dix/getevents.c
index 13789f6..fa4e3c8 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -407,7 +407,6 @@ GetMotionHistory(DeviceIntPtr pDev, xTimecoord **buff, unsigned long start,
Time current;
/* The size of a single motion event. */
int size;
- int dflt;
AxisInfo from, *to; /* for scaling */
INT32 *ocbuf, *icbuf; /* pointer to coordinates for copying */
INT16 *corebuf;
@@ -495,13 +494,6 @@ GetMotionHistory(DeviceIntPtr pDev, xTimecoord **buff, unsigned long start,
else if (j == 1 && (from.max_value < from.min_value))
from.max_value = pScreen->height;
- if (j == 0 && (to->max_value < to->min_value))
- dflt = pScreen->width;
- else if (j == 1 && (to->max_value < to->min_value))
- dflt = pScreen->height;
- else
- dflt = 0;
-
/* scale from stored range into current range */
coord = rescaleValuatorAxis(coord, 0.0, NULL, &from, to, 0);
memcpy(ocbuf, &coord, sizeof(INT32));
--
1.7.5.1
More information about the xorg-devel
mailing list