summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@openbsd.org>2010-01-10 16:33:44 +0000
committerMatthieu Herrb <matthieu@openbsd.org>2010-01-10 16:33:44 +0000
commit741a52763fad907ed3789043246fcb7cfdfb27c3 (patch)
tree0ba3e8a7ea81dd34d172e501940cdee7667052de
parent620053ed0e0471cb35e314f1b3fea25c75087aa7 (diff)
Remove unused screen_width and screen_height fields fromOPENBSD_4_7_BASE
driver private data.
-rw-r--r--src/ws.c3
-rw-r--r--src/ws.h1
2 files changed, 0 insertions, 4 deletions
diff --git a/src/ws.c b/src/ws.c
index 5922d93..9072fff 100644
--- a/src/ws.c
+++ b/src/ws.c
@@ -392,9 +392,6 @@ wsDeviceInit(DeviceIntPtr pWS)
btn_labels[1] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_MIDDLE);
btn_labels[2] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_RIGHT);
#endif
- priv->screen_width = screenInfo.screens[priv->screen_no]->width;
- priv->screen_height = screenInfo.screens[priv->screen_no]->height;
-
for (i = 0; i < NBUTTONS; i++)
map[i + 1] = i + 1;
if (!InitButtonClassDeviceStruct(pWS,
diff --git a/src/ws.h b/src/ws.h
index 5c121fb..64b7076 100644
--- a/src/ws.h
+++ b/src/ws.h
@@ -44,7 +44,6 @@ typedef struct WSDevice {
int swap_axes;
int raw;
int inv_x, inv_y;
- int screen_width, screen_height;
int screen_no;
int num, den, threshold; /* relative accel params */
pointer buffer;