summaryrefslogtreecommitdiff
path: root/packages/xorg-proto/calibrateproto/coords.patch
blob: 8f44b029c58bb124c572df8e82339ecd93cd90c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
 xcalibrateproto.h |   25 +++++++++++++++++++++++++
 xcalibratewire.h  |    3 ++-
 2 files changed, 27 insertions(+), 1 deletion(-)

Index: XCalibrateExt/xcalibrateproto.h
===================================================================
--- XCalibrateExt.orig/xcalibrateproto.h	2004-06-02 20:18:47.000000000 +0100
+++ XCalibrateExt/xcalibrateproto.h	2007-06-30 14:17:29.000000000 +0100
@@ -78,6 +78,31 @@ typedef struct {
 
 #define sz_xXCalibrateRawModeReply	32
 
+typedef struct {
+    CARD8   reqType;
+    CARD8   xCalibrateReqType;
+    CARD16  length B16;
+    CARD32  x B32;
+    CARD32  y B32;
+} xXCalibrateScreenToCoordReq;
+
+#define sz_xXCalibrateScreenToCoordReq	12
+
+typedef struct {
+    BYTE    type;   /* X_Reply */
+    BYTE    pad1;
+    CARD16  sequenceNumber B16;
+    CARD32  x;
+    CARD32  y;
+    CARD32  pad2 B32;
+    CARD32  pad3 B32;
+    CARD32  pad4 B32;
+    CARD32  pad5 B32;
+    CARD32  pad6 B32;
+} xXCalibrateScreenToCoordReply;
+
+#define sz_xXCalibrateScreenToCoordReply	32
+
 /* Events */
 
 typedef struct {
Index: XCalibrateExt/xcalibratewire.h
===================================================================
--- XCalibrateExt.orig/xcalibratewire.h	2004-06-02 20:18:47.000000000 +0100
+++ XCalibrateExt/xcalibratewire.h	2007-06-30 14:17:29.000000000 +0100
@@ -31,8 +31,9 @@
 
 #define X_XCalibrateQueryVersion		0
 #define X_XCalibrateRawMode			1
+#define X_XCalibrateScreenToCoord		2
 
-#define XCalibrateNumberRequests		(X_XCalibrateSetRawMode + 1)
+#define XCalibrateNumberRequests		(X_XCalibrateScreenToCoord + 1)
 
 #define X_XCalibrateRawTouchscreen		0