From 0251096085e3e1bd71d4297a9cfdb9ab0842d677 Mon Sep 17 00:00:00 2001 From: John Klehm Date: Sat, 31 May 2008 16:51:20 -0500 Subject: winex11.drv: Remove obsolete fixup code --- dlls/winex11.drv/wintab.c | 49 --------------------------------------------- 1 files changed, 0 insertions(+), 49 deletions(-) diff --git a/dlls/winex11.drv/wintab.c b/dlls/winex11.drv/wintab.c index d8f630b..5abe953 100644 --- a/dlls/winex11.drv/wintab.c +++ b/dlls/winex11.drv/wintab.c @@ -350,55 +350,6 @@ static int Tablet_ErrorHandler(Display *dpy, XErrorEvent *event, void* arg) return 1; } -static int find_cursor_by_type(int cursor_type, int exclude) -{ - int i; - for (i = 0; i < gNumCursors; i++) - if (i != exclude) - if (gSysCursor[i].TYPE == cursor_type) - return i; - - return -1; -} - -static void swap_cursors(int a, int b) -{ - WTI_CURSORS_INFO temp; - temp = gSysCursor[a]; - gSysCursor[a] = gSysCursor[b]; - gSysCursor[b] = temp; -} - -/* Adobe Photoshop 7.0 relies on the eraser being cursor #2 or #5, and it assumes the stylus is 1. -** If the X configuration is not set up that way, make it -*/ -static void Tablet_FixupCursors(void) -{ - if (gNumCursors >= 1) - if (gSysCursor[1].TYPE != CSR_TYPE_PEN) - { - int stylus; - stylus = find_cursor_by_type(CSR_TYPE_PEN, 1); - if (stylus >= 0) - { - swap_cursors(1, stylus); - TRACE("Swapped cursor %d with stylus slot (1) for compatibility with older programs\n", stylus); - } - } - - if (gNumCursors >= 2) - if (gSysCursor[2].TYPE != CSR_TYPE_ERASER) - { - int eraser; - eraser = find_cursor_by_type(CSR_TYPE_ERASER, 2); - if (eraser >= 0) - { - swap_cursors(2, eraser); - TRACE("Swapped cursor %d with eraser slot (2) for compatibility with older programs\n", eraser); - } - } -} - static void trace_axes(XValuatorInfoPtr val) { int i; -- 1.5.4.3