summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-03-30 14:20:26 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-03-30 14:20:26 +0000
commit8ea3353ec3fa29f0eb2269b54fff6834f97a8c08 (patch)
tree471a001405acd53d2ffef37da8b3961b16d0fbd3 /include
parent87af12dbdcb078b95391d57dabe53ce17b19f651 (diff)
XMesaDrawLine macro, not currently used
Diffstat (limited to 'include')
-rw-r--r--include/GL/xmesa_x.h1
-rw-r--r--include/GL/xmesa_xf86.h12
2 files changed, 13 insertions, 0 deletions
diff --git a/include/GL/xmesa_x.h b/include/GL/xmesa_x.h
index 1455c88adb..721d8b5107 100644
--- a/include/GL/xmesa_x.h
+++ b/include/GL/xmesa_x.h
@@ -64,6 +64,7 @@ typedef XColor XMesaColor;
#define XMesaDrawPoint XDrawPoint
#define XMesaDrawPoints XDrawPoints
+#define XMesaDrawLine XDrawLine
#define XMesaFillRectangle XFillRectangle
#define XMesaPutImage XPutImage
#define XMesaCopyArea XCopyArea
diff --git a/include/GL/xmesa_xf86.h b/include/GL/xmesa_xf86.h
index 63a8e57dbc..3c3d2047dc 100644
--- a/include/GL/xmesa_xf86.h
+++ b/include/GL/xmesa_xf86.h
@@ -95,6 +95,18 @@ do { \
(*gc->ops->PolyPoint)(__b, __gc, __m, __n, __p); \
} while (0)
+#define XMesaDrawLine(__d, __b, __gc, __x0, __y0, __x1, __y1) \
+do { \
+ XMesaPoint __p[2]; \
+ (void) __d; \
+ __p[0].x = __x0; \
+ __p[0].y = __y0; \
+ __p[1].x = __x1; \
+ __p[1].y = __y1; \
+ ValidateGC(__b, __gc); \
+ (*gc->ops->PolyLines)(__b, __gc, CoordModeOrigin, 2, __p); \
+} while (0)
+
#define XMesaFillRectangle(__d,__b,__gc,__x,__y,__w,__h) \
do { \
xRectangle __r[1]; \