aboutsummaryrefslogtreecommitdiffstats
path: root/XWindow.c
diff options
context:
space:
mode:
authorreinelt <>2000-03-30 16:46:57 +0000
committerreinelt <>2000-03-30 16:46:57 +0000
commitb96dca61ab3e4fcbd60df88b7b5c91143572081b (patch)
treefbe96ccf9a9479df23bb99d460772ba9713b1119 /XWindow.c
parent36b5421299224183d111685c1c11f43fb0486f37 (diff)
downloadlcd4linux-b96dca61ab3e4fcbd60df88b7b5c91143572081b.tar.gz
[lcd4linux @ 2000-03-30 16:46:57 by reinelt]
configure now handles '--with-x' and '--without-x' correct
Diffstat (limited to 'XWindow.c')
-rw-r--r--XWindow.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/XWindow.c b/XWindow.c
index 1b6b5d6..b169192 100644
--- a/XWindow.c
+++ b/XWindow.c
@@ -1,4 +1,4 @@
-/* $Id: XWindow.c,v 1.8 2000/03/28 08:48:33 reinelt Exp $
+/* $Id: XWindow.c,v 1.9 2000/03/30 16:46:57 reinelt Exp $
*
* X11 Driver for LCD4Linux
*
@@ -20,6 +20,10 @@
*
*
* $Log: XWindow.c,v $
+ * Revision 1.9 2000/03/30 16:46:57 reinelt
+ *
+ * configure now handles '--with-x' and '--without-x' correct
+ *
* Revision 1.8 2000/03/28 08:48:33 reinelt
*
* README.X11 added
@@ -50,6 +54,8 @@
*
*/
+#ifndef X_DISPLAY_MISSING
+
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <stdio.h>
@@ -228,6 +234,8 @@ XEvent ev;
wa.event_mask=ExposureMask|ButtonPressMask|ButtonReleaseMask;
w=XCreateWindow(dp,rw,0,0,dimx+2*border,dimy+2*border,0,0,
InputOutput,vi,CWEventMask,&wa);
+ printf ("XCreateWindow (%p, %ld, %d, %d, %d, %d, %d, %d, %d, %p, %ld, %p) = %ld\n",
+ dp,rw,0,0,dimx+2*border,dimy+2*border,0,0,InputOutput,vi,CWEventMask,&wa, w);
pmback=XCreatePixmap(dp,w,dimx,dimy,dd);
size_hints.min_width=size_hints.max_width=dimx+2*border;
size_hints.min_height=size_hints.max_height=dimy+2*border;
@@ -439,3 +447,5 @@ LCD XWindow[] = {
{ "X11", 0, 0, 0, 0, BARS, xlcdinit, xlcdclear, xlcdput, xlcdbar, xlcdflush },
{ NULL }
};
+
+#endif /* X_DISPLAY_MISSING */