Remove unused screen_width and screen_height fields from

driver private data.
This commit is contained in:
matthieu 2010-01-10 16:33:44 +00:00
parent 73eed35333
commit 5590951830
2 changed files with 1 additions and 5 deletions

View File

@ -13,7 +13,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $OpenBSD: ws.c,v 1.30 2010/01/10 15:22:47 matthieu Exp $ */
/* $OpenBSD: ws.c,v 1.31 2010/01/10 16:33:44 matthieu Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@ -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,

View File

@ -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;