author | Alan Coopersmith <Alan.Coopersmith@Sun.COM> |
Thu, 18 Feb 2010 16:03:08 -0800 | |
changeset 907 | 3c35d611cdaa |
parent 126 | ca8bb92f6783 |
child 919 | 425233ae7236 |
permissions | -rw-r--r-- |
126
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
1 |
# |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
2 |
# Copyright 2007 Sun Microsystems, Inc. All rights reserved. |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
3 |
# |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
4 |
# Permission is hereby granted, free of charge, to any person obtaining a |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
5 |
# copy of this software and associated documentation files (the |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
6 |
# "Software"), to deal in the Software without restriction, including |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
7 |
# without limitation the rights to use, copy, modify, merge, publish, |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
8 |
# distribute, and/or sell copies of the Software, and to permit persons |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
9 |
# to whom the Software is furnished to do so, provided that the above |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
10 |
# copyright notice(s) and this permission notice appear in all copies of |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
11 |
# the Software and that both the above copyright notice(s) and this |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
12 |
# permission notice appear in supporting documentation. |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
13 |
# |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
14 |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
15 |
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
16 |
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
17 |
# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
18 |
# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
19 |
# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
20 |
# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
21 |
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
22 |
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
23 |
# |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
24 |
# Except as contained in this notice, the name of a copyright holder |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
25 |
# shall not be used in advertising or otherwise to promote the sale, use |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
26 |
# or other dealings in this Software without prior written authorization |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
27 |
# of the copyright holder. |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
28 |
# |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
29 |
# |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
30 |
# |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
31 |
|
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
32 |
Solaris already has the old XPanoramiX* API in libXext, so we don't export |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
33 |
it from libXinerama to avoid symbol clashes. |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
34 |
|
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
35 |
--- src/Xinerama.c 2007-03-01 15:41:16.000000000 -0800 |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
36 |
+++ src/Xinerama.c 2007-03-07 14:50:49.899520000 -0800 |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
37 |
@@ -76,6 +76,9 @@ |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
38 |
* * |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
39 |
****************************************************************************/ |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
40 |
|
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
41 |
+#ifdef SUNSOFT |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
42 |
+static inline |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
43 |
+#endif /* SUNSOFT */ |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
44 |
Bool XPanoramiXQueryExtension ( |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
45 |
Display *dpy, |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
46 |
int *event_basep, |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
47 |
@@ -94,6 +97,9 @@ |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
48 |
} |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
49 |
|
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
50 |
|
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
51 |
+#ifdef SUNSOFT |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
52 |
+static inline |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
53 |
+#endif /* SUNSOFT */ |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
54 |
Status XPanoramiXQueryVersion( |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
55 |
Display *dpy, |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
56 |
int *major_versionp, |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
57 |
@@ -124,6 +130,7 @@ |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
58 |
return 1; |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
59 |
} |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
60 |
|
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
61 |
+#ifndef SUNSOFT |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
62 |
XPanoramiXInfo *XPanoramiXAllocInfo(void) |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
63 |
{ |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
64 |
return (XPanoramiXInfo *) Xmalloc (sizeof (XPanoramiXInfo)); |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
65 |
@@ -219,6 +226,7 @@ |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
66 |
panoramiX_info->height = rep.height; |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
67 |
return 1; |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
68 |
} |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
69 |
+#endif /* SUNSOFT */ |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
70 |
|
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
71 |
/*******************************************************************\ |
ca8bb92f6783
6489136 libXinerama should be shipped in Solaris [PSARC 2007/135]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
72 |
Alternate interface to make up for shortcomings in the original, |