~ubuntu-branches/debian/jessie/imwheel/jessie

« back to all changes in this revision

Viewing changes to gpm-1.19.3/xf86Summa.diff

  • Committer: Bazaar Package Importer
  • Author(s): Christopher Martin
  • Date: 2004-09-29 10:02:49 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040929100249-inmse6hd9fn4r6wn
Tags: 1.0.0pre12-2
* New upload to force mips to try again; pre12-1 was never installed.
  Still urgency=high since pre12-1 never made Sarge.
* Improved the readability of the upstream changelog.
* Minor compilation fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--- xf86Summa.xfree     Tue May 25 08:55:42 1999
2
 
+++ xf86Summa.c Mon Aug 23 19:41:04 1999
3
 
@@ -1,5 +1,8 @@
4
 
 /*
5
 
  * Copyright 1996 by Steven Lang <tiger@tyger.org>
6
 
+
7
 
+ * gpm summa-repeater support:
8
 
+ * Mon Aug 23 19:32:47 CEST 1999 Frank Holtz <frank@hof-berlin.de>
9
 
  *
10
 
  * Permission to use, copy, modify, distribute, and sell this software and its
11
 
  * documentation for any purpose is hereby granted without fee, provided that
12
 
@@ -20,11 +23,12 @@
13
 
  * PERFORMANCE OF THIS SOFTWARE.
14
 
  */
15
 
 
16
 
-/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86Summa.c,v 3.5.2.6 1999/05/25 06:55:42 hohndel Exp $ */
17
 
+/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86Summa.c,v 3.5.2.7 1999/08/23 19:55:42  */
18
 
 
19
 
 #include "Xos.h"
20
 
 #include <signal.h>
21
 
 #include <stdio.h>
22
 
+#include <strings.h>
23
 
 
24
 
 #define NEED_EVENTS
25
 
 #include "X.h"
26
 
@@ -90,7 +94,8 @@
27
 
 #define ABSOLUTE_FLAG          1
28
 
 #define STYLUS_FLAG            2
29
 
 #define COMPATIBLE_FLAG                4
30
 
-
31
 
+#define GPM_FLAG                8
32
 
33
 
 typedef struct 
34
 
 {
35
 
     char       *sumDevice;     /* device file name */
36
 
@@ -250,6 +255,7 @@
37
 
                if (xf86Verbose)
38
 
                    ErrorF("%s SummaSketch X device name is %s\n", XCONFIG_GIVEN,
39
 
                           dev->name);
40
 
+               if (strstr(priv->sumDevice,"gpmdata")!=NULL) priv->flags |= GPM_FLAG;
41
 
            }
42
 
            break;
43
 
 
44
 
@@ -657,6 +663,13 @@
45
 
        return !Success;
46
 
     }
47
 
     DBG(2, ErrorF("%s opened as fd %d\n", priv->sumDevice, local->fd));
48
 
+
49
 
+    if (priv->flags & GPM_FLAG) {
50
 
+    ErrorF("SummaSketch GPM-Mode (%s)\n",priv->sumDevice);
51
 
+    priv->sumMaxX=16383; priv->sumMaxY=16383;
52
 
+    priv->sumXSize = priv->sumMaxX; priv->sumYSize = priv->sumMaxX;
53
 
+    return Success;
54
 
+    }
55
 
 
56
 
 #ifdef POSIX_TTY
57
 
     err = tcgetattr(local->fd, &termios_tty);