summaryrefslogtreecommitdiff
path: root/xc/lib/Xrandr/test.c
diff options
context:
space:
mode:
authordawes <dawes>2001-08-22 18:00:12 +0000
committerdawes <dawes>2001-08-22 18:00:12 +0000
commit43b79bb01fb3ccf0785d8c1beed4d8710db48a8d (patch)
treec76efae431766da82895f2030fac3ca20d486e2b /xc/lib/Xrandr/test.c
parent9d8ac1f4820f6a1984bcc9e4a4151ba9f0acdc1f (diff)
Import of XFree86 4.1.99.1X_4_1_99_1
Diffstat (limited to 'xc/lib/Xrandr/test.c')
-rw-r--r--xc/lib/Xrandr/test.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/xc/lib/Xrandr/test.c b/xc/lib/Xrandr/test.c
new file mode 100644
index 000000000..333d2a6ab
--- /dev/null
+++ b/xc/lib/Xrandr/test.c
@@ -0,0 +1,21 @@
+/* $XFree86: xc/lib/Xrandr/test.c,v 1.2 2001/08/06 21:46:03 dawes Exp $ */
+
+#include <stdio.h>
+#include <X11/Xlib.h>
+#include "Xrandr.h"
+
+main (int argc, char **argv)
+
+{
+ char *display_name = ":0";
+ Display *display;
+ int major, minor, status;
+
+ if ((display = XOpenDisplay (display_name)) == NULL) {
+ fprintf(stderr, "Can't open display!\n");
+ }
+ status = XRRQueryVersion (display, &major, &minor);
+ fprintf(stderr, "status = %d, major = %d, minor = %d\n,
+ status, major, minor");
+
+}