summaryrefslogtreecommitdiffstats
path: root/include/GL/xmesa_x.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2004-02-19 00:57:04 +0000
committerIan Romanick <[email protected]>2004-02-19 00:57:04 +0000
commit304d3aa9cb727eb4cd4797c33f8e13e5ac4285a9 (patch)
treedbd971e7bfa0355e40db0ccd4efceebd2dcb68b1 /include/GL/xmesa_x.h
parente01370271eebb6cf86d8119c3c37b3f6f9db1d8b (diff)
Refactored several variables out of XMesaVisual in favor of identical
fields in __GLcontextModes (the base type). Removed the need to keep the XMesaVisualInfo pointer when building inside the X-server.
Diffstat (limited to 'include/GL/xmesa_x.h')
-rw-r--r--include/GL/xmesa_x.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/include/GL/xmesa_x.h b/include/GL/xmesa_x.h
index def0447195f..8c4e41e545a 100644
--- a/include/GL/xmesa_x.h
+++ b/include/GL/xmesa_x.h
@@ -74,16 +74,11 @@ typedef XColor XMesaColor;
#define XMesaFreeGC XFreeGC
#define GET_COLORMAP_SIZE(__v) __v->visinfo->colormap_size
-#define GET_REDMASK(__v) __v->visinfo->red_mask
-#define GET_GREENMASK(__v) __v->visinfo->green_mask
-#define GET_BLUEMASK(__v) __v->visinfo->blue_mask
-#if defined(__cplusplus) || defined(c_plusplus)
-#define GET_VISUAL_CLASS(__v) __v->visinfo->c_class
-#else
-#define GET_VISUAL_CLASS(__v) __v->visinfo->class
-#endif
+#define GET_REDMASK(__v) __v->mesa_visual.redMask
+#define GET_GREENMASK(__v) __v->mesa_visual.greenMask
+#define GET_BLUEMASK(__v) __v->mesa_visual.blueMask
#define GET_VISUAL_DEPTH(__v) __v->visinfo->depth
-#define GET_BLACK_PIXEL(__v) BlackPixel(__v->display, __v->visinfo->screen)
+#define GET_BLACK_PIXEL(__v) BlackPixel(__v->display, __v->mesa_visual.screen)
#define CHECK_BYTE_ORDER(__v) host_byte_order()==ImageByteOrder(__v->display)
#define CHECK_FOR_HPCR(__v) XInternAtom(__v->display, "_HP_RGB_SMOOTH_MAP_LIST", True)