summaryrefslogtreecommitdiff
path: root/hw/xnest/Drawable.h
diff options
context:
space:
mode:
authorroot <root@zombrain.(none)>2011-07-25 08:54:41 (GMT)
committerroot <root@zombrain.(none)>2011-07-25 08:54:41 (GMT)
commitab4fcaad149d4bdccefa8f693c2a8e044b40dd4c (patch)
treec95c280caabc70e7aedbde723e38820047357be7 /hw/xnest/Drawable.h
initial state (xorg-server 1.10.2)
Diffstat (limited to 'hw/xnest/Drawable.h')
-rw-r--r--hw/xnest/Drawable.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/hw/xnest/Drawable.h b/hw/xnest/Drawable.h
new file mode 100644
index 0000000..4268b7b
--- /dev/null
+++ b/hw/xnest/Drawable.h
@@ -0,0 +1,26 @@
+/*
+
+Copyright 1993 by Davor Matic
+
+Permission to use, copy, modify, distribute, and sell this software
+and its documentation for any purpose is hereby granted without fee,
+provided that the above copyright notice appear in all copies and that
+both that copyright notice and this permission notice appear in
+supporting documentation. Davor Matic makes no representations about
+the suitability of this software for any purpose. It is provided "as
+is" without express or implied warranty.
+
+*/
+
+#ifndef XNESTDRAWABLE_H
+#define XNESTDRAWABLE_H
+
+#include "XNWindow.h"
+#include "XNPixmap.h"
+
+#define xnestDrawable(pDrawable) \
+ (WindowDrawable((pDrawable)->type) ? \
+ xnestWindow((WindowPtr)pDrawable) : \
+ xnestPixmap((PixmapPtr)pDrawable))
+
+#endif /* XNESTDRAWABLE_H */
contact: Jan Huwald // Impressum