summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/xlib/xmesaP.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-31 15:13:29 -0600
committerBrian <[email protected]>2007-10-31 15:13:29 -0600
commite5ff772523e73dcc8b79270d680a8de1a7bad7bc (patch)
tree3bc722082f382097d234521b2dbc2edd0a48446b /src/mesa/pipe/xlib/xmesaP.h
parent017d08a5e040ee476b19d672c17090eaca7fa918 (diff)
remove HPCR support
Diffstat (limited to 'src/mesa/pipe/xlib/xmesaP.h')
-rw-r--r--src/mesa/pipe/xlib/xmesaP.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/mesa/pipe/xlib/xmesaP.h b/src/mesa/pipe/xlib/xmesaP.h
index f878af974f4..195d4839a95 100644
--- a/src/mesa/pipe/xlib/xmesaP.h
+++ b/src/mesa/pipe/xlib/xmesaP.h
@@ -71,7 +71,6 @@ enum pixel_format {
PF_5R6G5B, /**< 16-bit TrueColor: 5-R, 6-G, 5-B bits */
PF_Dither, /**< Color-mapped RGB with dither */
PF_Lookup, /**< Color-mapped RGB without dither */
- PF_HPCR, /**< HP Color Recovery ([email protected] 30/08/95) */
PF_1Bit, /**< monochrome dithering of RGB */
PF_Grayscale, /**< Grayscale or StaticGray */
PF_Dither_5R6G5B /**< 16-bit dithered TrueColor: 5-R, 6-G, 5-B */
@@ -113,13 +112,6 @@ struct xmesa_visual {
GLubyte PixelToG[256];
GLubyte PixelToB[256];
- /* For PF_HPCR */
- short hpcr_rgbTbl[3][256];
- GLboolean hpcr_clear_flag;
- GLubyte hpcr_clear_ximage_pattern[2][16];
- XMesaImage *hpcr_clear_ximage;
- XMesaPixmap hpcr_clear_pixmap;
-
/* For PF_1BIT */
int bitFlip;
};
@@ -422,25 +414,6 @@ extern const int xmesa_kernel8[DITH_DY * DITH_DX];
_dither_lookup(DITH_B, (B)))]
-/**
- * If pixelformat==PF_HPCR:
- *
- * HP Color Recovery dithering ([email protected] 30/08/95)
- * HP has on it's 8-bit 700-series computers, a feature called
- * 'Color Recovery'. This allows near 24-bit output (so they say).
- * It is enabled by selecting the 8-bit TrueColor visual AND
- * corresponding colormap (see tkInitWindow) AND doing some special
- * dither.
- */
-extern const short xmesa_HPCR_DRGB[3][2][16];
-
-#define DITHER_HPCR( X, Y, R, G, B ) \
- ( ((xmesa->xm_visual->hpcr_rgbTbl[0][R] + xmesa_HPCR_DRGB[0][(Y)&1][(X)&15]) & 0xE0) \
- |(((xmesa->xm_visual->hpcr_rgbTbl[1][G] + xmesa_HPCR_DRGB[1][(Y)&1][(X)&15]) & 0xE0)>>3) \
- | ((xmesa->xm_visual->hpcr_rgbTbl[2][B] + xmesa_HPCR_DRGB[2][(Y)&1][(X)&15])>>6) \
- )
-
-
/**
* If pixelformat==PF_1BIT: