summaryrefslogtreecommitdiff
path: root/mfb
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2005-04-22 20:49:50 +0000
committerAdam Jackson <ajax@nwnk.net>2005-04-22 20:49:50 +0000
commit07bd7df6a6a07834277b4bf505db6727841e1153 (patch)
tree3df2c5236977ce10097c74708661014c299878c0 /mfb
parentd450a70e00b50427ecb2065d3cc44f43d102cade (diff)
Bug #3069: Drop the BuildLowMem hack, it doesn't compile and isn't useful.
Diffstat (limited to 'mfb')
-rw-r--r--mfb/maskbits.c4
-rw-r--r--mfb/mfbbitblt.c4
-rw-r--r--mfb/mfbgc.c431
-rw-r--r--mfb/mfbimggblt.c4
-rw-r--r--mfb/mfbpixmap.c2
-rw-r--r--mfb/mfbscrinit.c4
6 files changed, 0 insertions, 449 deletions
diff --git a/mfb/maskbits.c b/mfb/maskbits.c
index 8f99f2026..0264dd45b 100644
--- a/mfb/maskbits.c
+++ b/mfb/maskbits.c
@@ -150,7 +150,6 @@ PixelType endtab[PPW+1] =
LONG2CHARS( 0xFFFFFFFF )
};
-#ifndef LOWMEMFTPT
#ifdef NEED_OLD_MFB_MASKS
/* a hack, for now, since the entries for 0 need to be all
@@ -233,7 +232,6 @@ PixelType endpartial[33] =
};
#endif /* NEED_OLD_MFB_MASKS */
-#endif /* ifndef LOWMEMFTPT */
PixelType partmasks[PPW][PPW] = {
{LONG2CHARS( 0xFFFFFFFF ), LONG2CHARS( 0x80000000 ), LONG2CHARS( 0xC0000000 ), LONG2CHARS( 0xE0000000 ),
@@ -575,7 +573,6 @@ PixelType endtab[PPW+1] =
LONG2CHARS( 0xFFFFFFFF )
};
-#ifndef LOWMEMFTPT
#ifdef NEED_OLD_MFB_MASKS
/* a hack ), for now, since the entries for 0 need to be all
@@ -658,7 +655,6 @@ PixelType endpartial[33] =
};
#endif
-#endif /* ifndef LOWMEMFTPT */
PixelType partmasks[PPW][PPW] = {
{LONG2CHARS( 0xFFFFFFFF ), LONG2CHARS( 0x00000001 ), LONG2CHARS( 0x00000003 ), LONG2CHARS( 0x00000007 ),
diff --git a/mfb/mfbbitblt.c b/mfb/mfbbitblt.c
index 0a5b377b7..c10f4f988 100644
--- a/mfb/mfbbitblt.c
+++ b/mfb/mfbbitblt.c
@@ -93,7 +93,6 @@ destination. this is a simple translation.
** and much less overhead. Nice for drawing lots of small pixmaps.
*/
-#ifndef LOWMEMFTPT
void
mfbDoBitblt (pSrc, pDst, alu, prgnDst, pptSrc)
@@ -388,7 +387,6 @@ int dstx, dsty;
return prgnExposed;
}
-#endif /* ifndef LOWMEMFTPT */
/*
* Devices which use mfb for 1-bit pixmap support
@@ -437,7 +435,6 @@ CopyArea().
*/
-#ifndef LOWMEMFTPT
RegionPtr
mfbCopyPlane(pSrcDrawable, pDstDrawable,
@@ -507,4 +504,3 @@ unsigned long plane;
return prgnExposed;
}
-#endif /* ifndef LOWMEMFTPT */
diff --git a/mfb/mfbgc.c b/mfb/mfbgc.c
index 3b0ebedb0..2f46dced7 100644
--- a/mfb/mfbgc.c
+++ b/mfb/mfbgc.c
@@ -73,7 +73,6 @@ static GCFuncs mfbFuncs = {
miCopyClip
};
-#ifndef LOWMEMFTPT
static GCOps whiteTECopyOps = {
mfbWhiteSolidFS,
@@ -361,295 +360,6 @@ static GCOps fgEqBgInvertOps = {
#endif
};
-#else
-
-static GCOps whiteTECopyOps = {
- mfbWhiteSolidFS,
- mfbSetSpans,
- miPutImage,
- miCopyArea,
- miCopyPlane,
- miPolyPoint,
- miZeroLine,
- miPolySegment,
- miPolyRectangle,
- miZeroPolyArc,
- mfbFillPolyWhite,
- mfbPolyFillRect,
- miPolyFillArc,
- miPolyText8,
- miPolyText16,
- miImageText8,
- miImageText16,
- mfbTEGlyphBltWhite,
- mfbPolyGlyphBltWhite,
- miPushPixels
-#ifdef NEED_LINEHELPER
- ,NULL
-#endif
-};
-
-static GCOps blackTECopyOps = {
- mfbBlackSolidFS,
- mfbSetSpans,
- miPutImage,
- miCopyArea,
- miCopyPlane,
- miPolyPoint,
- miZeroLine,
- miPolySegment,
- miPolyRectangle,
- miZeroPolyArc,
- mfbFillPolyBlack,
- mfbPolyFillRect,
- miPolyFillArc,
- miPolyText8,
- miPolyText16,
- miImageText8,
- miImageText16,
- mfbTEGlyphBltBlack,
- mfbPolyGlyphBltBlack,
- miPushPixels
-#ifdef NEED_LINEHELPER
- ,NULL
-#endif
-};
-
-static GCOps whiteTEInvertOps = {
- mfbInvertSolidFS,
- mfbSetSpans,
- miPutImage,
- miCopyArea,
- miCopyPlane,
- miPolyPoint,
- miZeroLine,
- miPolySegment,
- miPolyRectangle,
- miZeroPolyArc,
- mfbFillPolyInvert,
- mfbPolyFillRect,
- miPolyFillArc,
- miPolyText8,
- miPolyText16,
- miImageText8,
- miImageText16,
- mfbTEGlyphBltWhite,
- mfbPolyGlyphBltInvert,
- miPushPixels
-#ifdef NEED_LINEHELPER
- ,NULL
-#endif
-};
-
-static GCOps blackTEInvertOps = {
- mfbInvertSolidFS,
- mfbSetSpans,
- miPutImage,
- miCopyArea,
- miCopyPlane,
- miPolyPoint,
- miZeroLine,
- miPolySegment,
- miPolyRectangle,
- miZeroPolyArc,
- mfbFillPolyInvert,
- mfbPolyFillRect,
- miPolyFillArc,
- miPolyText8,
- miPolyText16,
- miImageText8,
- miImageText16,
- mfbTEGlyphBltBlack,
- mfbPolyGlyphBltInvert,
- miPushPixels
-#ifdef NEED_LINEHELPER
- ,NULL
-#endif
-};
-
-static GCOps whiteCopyOps = {
- mfbWhiteSolidFS,
- mfbSetSpans,
- miPutImage,
- miCopyArea,
- miCopyPlane,
- miPolyPoint,
- miZeroLine,
- miPolySegment,
- miPolyRectangle,
- miZeroPolyArc,
- mfbFillPolyWhite,
- mfbPolyFillRect,
- miPolyFillArc,
- miPolyText8,
- miPolyText16,
- miImageText8,
- miImageText16,
- mfbImageGlyphBltWhite,
- mfbPolyGlyphBltWhite,
- miPushPixels
-#ifdef NEED_LINEHELPER
- ,NULL
-#endif
-};
-
-static GCOps blackCopyOps = {
- mfbBlackSolidFS,
- mfbSetSpans,
- miPutImage,
- miCopyArea,
- miCopyPlane,
- miPolyPoint,
- miZeroLine,
- miPolySegment,
- miPolyRectangle,
- miZeroPolyArc,
- mfbFillPolyBlack,
- mfbPolyFillRect,
- miPolyFillArc,
- miPolyText8,
- miPolyText16,
- miImageText8,
- miImageText16,
- mfbImageGlyphBltBlack,
- mfbPolyGlyphBltBlack,
- miPushPixels
-#ifdef NEED_LINEHELPER
- ,NULL
-#endif
-};
-
-static GCOps whiteInvertOps = {
- mfbInvertSolidFS,
- mfbSetSpans,
- miPutImage,
- miCopyArea,
- miCopyPlane,
- miPolyPoint,
- miZeroLine,
- miPolySegment,
- miPolyRectangle,
- miZeroPolyArc,
- mfbFillPolyInvert,
- mfbPolyFillRect,
- miPolyFillArc,
- miPolyText8,
- miPolyText16,
- miImageText8,
- miImageText16,
- mfbImageGlyphBltWhite,
- mfbPolyGlyphBltInvert,
- miPushPixels
-#ifdef NEED_LINEHELPER
- ,NULL
-#endif
-};
-
-static GCOps blackInvertOps = {
- mfbInvertSolidFS,
- mfbSetSpans,
- miPutImage,
- miCopyArea,
- miCopyPlane,
- miPolyPoint,
- miZeroLine,
- miPolySegment,
- miPolyRectangle,
- miZeroPolyArc,
- mfbFillPolyInvert,
- mfbPolyFillRect,
- miPolyFillArc,
- miPolyText8,
- miPolyText16,
- miImageText8,
- miImageText16,
- mfbImageGlyphBltBlack,
- mfbPolyGlyphBltInvert,
- miPushPixels
-#ifdef NEED_LINEHELPER
- ,NULL
-#endif
-};
-
-static GCOps whiteWhiteCopyOps = {
- mfbWhiteSolidFS,
- mfbSetSpans,
- miPutImage,
- miCopyArea,
- miCopyPlane,
- miPolyPoint,
- miZeroLine,
- miPolySegment,
- miPolyRectangle,
- miZeroPolyArc,
- mfbFillPolyWhite,
- mfbPolyFillRect,
- miPolyFillArc,
- miPolyText8,
- miPolyText16,
- miImageText8,
- miImageText16,
- miImageGlyphBlt,
- mfbPolyGlyphBltWhite,
- miPushPixels
-#ifdef NEED_LINEHELPER
- ,NULL
-#endif
-};
-
-static GCOps blackBlackCopyOps = {
- mfbBlackSolidFS,
- mfbSetSpans,
- miPutImage,
- miCopyArea,
- miCopyPlane,
- miPolyPoint,
- miZeroLine,
- miPolySegment,
- miPolyRectangle,
- miZeroPolyArc,
- mfbFillPolyBlack,
- mfbPolyFillRect,
- miPolyFillArc,
- miPolyText8,
- miPolyText16,
- miImageText8,
- miImageText16,
- miImageGlyphBlt,
- mfbPolyGlyphBltBlack,
- miPushPixels
-#ifdef NEED_LINEHELPER
- ,NULL
-#endif
-};
-
-static GCOps fgEqBgInvertOps = {
- mfbInvertSolidFS,
- mfbSetSpans,
- miPutImage,
- miCopyArea,
- miCopyPlane,
- miPolyPoint,
- miZeroLine,
- miPolySegment,
- miPolyRectangle,
- miZeroPolyArc,
- mfbFillPolyInvert,
- mfbPolyFillRect,
- miPolyFillArc,
- miPolyText8,
- miPolyText16,
- miImageText8,
- miImageText16,
- miImageGlyphBlt,
- mfbPolyGlyphBltInvert,
- miPushPixels
-#ifdef NEED_LINEHELPER
- ,NULL
-#endif
-};
-
-#endif /* ifndef LOWMEMFTPT */
struct commonOps {
int fg, bg;
@@ -1047,12 +757,10 @@ mfbValidateGC(pGC, changes, pDrawable)
{
if (pGC->lineWidth == 0)
{
-#ifndef LOWMEMFTPT
if ((pGC->lineStyle == LineSolid) && (pGC->fillStyle == FillSolid)
&& ((rrop == RROP_WHITE) || (rrop == RROP_BLACK)))
pGC->ops->PolyArc = mfbZeroPolyArcSS;
else
-#endif /* ifndef LOWMEMFTPT */
pGC->ops->PolyArc = miZeroPolyArc;
}
else
@@ -1061,14 +769,12 @@ mfbValidateGC(pGC, changes, pDrawable)
{
if(pGC->lineWidth == 0)
{
-#ifndef LOWMEMFTPT
if (pGC->fillStyle == FillSolid)
{
pGC->ops->PolySegment = mfbSegmentSS;
pGC->ops->Polylines = mfbLineSS;
}
else
-#endif /* ifndef LOWMEMFTPT */
{
pGC->ops->PolySegment = miPolySegment;
pGC->ops->Polylines = miZeroLine;
@@ -1082,14 +788,12 @@ mfbValidateGC(pGC, changes, pDrawable)
}
else
{
-#ifndef LOWMEMFTPT
if(pGC->lineWidth == 0 && pGC->fillStyle == FillSolid)
{
pGC->ops->Polylines = mfbLineSD;
pGC->ops->PolySegment = mfbSegmentSD;
}
else
-#endif /* ifndef LOWMEMFTPT */
{
pGC->ops->Polylines = miWideDash;
pGC->ops->PolySegment = miPolySegment;
@@ -1111,7 +815,6 @@ mfbValidateGC(pGC, changes, pDrawable)
{
/* special case ImageGlyphBlt for terminal emulator fonts */
-#ifndef LOWMEMFTPT
if ((pGC->font) &&
TERMINALFONT(pGC->font) &&
@@ -1128,7 +831,6 @@ mfbValidateGC(pGC, changes, pDrawable)
}
else
-#endif /* ifndef LOWMEMFTPT */
{
if (pGC->fgPixel & 1)
@@ -1162,7 +864,6 @@ mfbValidateGC(pGC, changes, pDrawable)
if (new_fill)
-#ifndef LOWMEMFTPT
{
/* install a suitable fillspans and pushpixels */
@@ -1299,138 +1000,6 @@ mfbValidateGC(pGC, changes, pDrawable)
} /* end of natural rectangles */
} /* end of new_fill */
-#else
-
- {
- /* install a suitable fillspans and pushpixels */
- pGC->ops->PushPixels = miPushPixels;
- pGC->ops->FillPolygon = miFillPolygon;
- if ((pGC->fillStyle == FillSolid) ||
- ((pGC->fillStyle == FillOpaqueStippled) &&
- ((pGC->fgPixel & 1) == (pGC->bgPixel & 1))))
- {
- pGC->ops->PushPixels = miPushPixels;
- switch(devPriv->rop)
- {
- case RROP_WHITE:
- pGC->ops->FillSpans = mfbWhiteSolidFS;
- pGC->ops->FillPolygon = mfbFillPolyWhite;
- break;
- case RROP_BLACK:
- pGC->ops->FillSpans = mfbBlackSolidFS;
- pGC->ops->FillPolygon = mfbFillPolyBlack;
- break;
- case RROP_INVERT:
- pGC->ops->FillSpans = mfbInvertSolidFS;
- pGC->ops->FillPolygon = mfbFillPolyInvert;
- break;
- case RROP_NOP:
- pGC->ops->FillSpans = (void (*)())NoopDDA;
- pGC->ops->FillPolygon = (void (*)())NoopDDA;
- break;
- }
- }
- /* beyond this point, opaqueStippled ==> fg != bg */
- else if (((pGC->fillStyle == FillTiled) ||
- (pGC->fillStyle == FillOpaqueStippled)) &&
- !pGC->pRotatedPixmap)
- {
- pGC->ops->FillSpans = mfbUnnaturalTileFS;
- }
- else if ((pGC->fillStyle == FillStippled) && !pGC->pRotatedPixmap)
- {
- pGC->ops->FillSpans = mfbUnnaturalStippleFS;
- }
- else if (pGC->fillStyle == FillStippled)
- {
- switch(devPriv->rop)
- {
- case RROP_WHITE:
- pGC->ops->FillSpans = mfbWhiteStippleFS;
- case RROP_BLACK:
- pGC->ops->FillSpans = mfbBlackStippleFS;
- case RROP_INVERT:
- pGC->ops->FillSpans = mfbInvertStippleFS;
- case RROP_NOP:
- pGC->ops->FillSpans = (void (*)())NoopDDA;
- break;
- }
- }
- else /* overload tiles to do parti-colored opaque stipples */
- {
- pGC->ops->FillSpans = mfbTileFS;
- }
- pGC->ops->PolyFillArc = miPolyFillArc;
- /* the rectangle code doesn't deal with opaque stipples that
- are two colors -- we can fool it for fg==bg, though
- */
- if ((((pGC->fillStyle == FillTiled) ||
- (pGC->fillStyle == FillStippled)) &&
- !pGC->pRotatedPixmap) ||
- ((pGC->fillStyle == FillOpaqueStippled) &&
- ((pGC->fgPixel & 1) != (pGC->bgPixel & 1)))
- )
- {
- pGC->ops->PolyFillRect = miPolyFillRect;
- }
- else /* deal with solids and natural stipples and tiles */
- {
- pGC->ops->PolyFillRect = mfbPolyFillRect;
-
- if ((pGC->fillStyle == FillSolid) ||
- ((pGC->fillStyle == FillOpaqueStippled) &&
- ((pGC->fgPixel & 1) == (pGC->bgPixel & 1))))
- {
- switch(devPriv->rop)
- {
- case RROP_WHITE:
- devPriv->FillArea = mfbSolidWhiteArea;
- break;
- case RROP_BLACK:
- devPriv->FillArea = mfbSolidBlackArea;
- break;
- case RROP_INVERT:
- devPriv->FillArea = mfbSolidInvertArea;
- break;
- case RROP_NOP:
- devPriv->FillArea = (mfbFillAreaProcPtr)NoopDDA;
- break;
- }
- }
- else if (pGC->fillStyle == FillStippled)
- {
- switch(devPriv->rop)
- {
- case RROP_WHITE:
- devPriv->FillArea = mfbStippleWhiteArea;
- break;
- case RROP_BLACK:
- devPriv->FillArea = mfbStippleBlackArea;
- break;
- case RROP_INVERT:
- devPriv->FillArea = mfbStippleInvertArea;
- break;
- case RROP_NOP:
- devPriv->FillArea = (mfbFillAreaProcPtr)NoopDDA;
- break;
- }
- }
- else /* deal with tiles */
- {
- switch (pGC->alu)
- {
- case GXcopy:
- devPriv->FillArea = mfbTileAreaPPWCopy;
- break;
- default:
- devPriv->FillArea = mfbTileAreaPPWGeneral;
- break;
- }
- }
- } /* end of natural rectangles */
- } /* end of new_fill */
-
-#endif /* ifndef LOWMEMFTPT */
}
diff --git a/mfb/mfbimggblt.c b/mfb/mfbimggblt.c
index 0a4bb6df1..5f86b4cb5 100644
--- a/mfb/mfbimggblt.c
+++ b/mfb/mfbimggblt.c
@@ -190,11 +190,7 @@ MFBIMAGEGLYPHBLT(pDrawable, pGC, x, y, nglyph, ppci, pglyphBase)
else
pPrivGC->FillArea = mfbSolidBlackArea;
-#ifndef LOWMEMFTPT
mfbPolyFillRect(pDrawable, pGC, 1, &backrect);
-#else
- miPolyFillRect(pDrawable, pGC, 1, &backrect);
-#endif
pPrivGC->FillArea = oldFillArea;
/* the faint-hearted can open their eyes now */
diff --git a/mfb/mfbpixmap.c b/mfb/mfbpixmap.c
index ebf086ad8..36055643d 100644
--- a/mfb/mfbpixmap.c
+++ b/mfb/mfbpixmap.c
@@ -62,7 +62,6 @@ SOFTWARE.
#include "servermd.h"
-#ifndef LOWMEMFTPT
PixmapPtr
mfbCreatePixmap (pScreen, width, height, depth)
@@ -104,7 +103,6 @@ mfbCreatePixmap (pScreen, width, height, depth)
return pPixmap;
}
-#endif /* ifndef LOWMEMFTPT */
Bool
mfbDestroyPixmap(pPixmap)
diff --git a/mfb/mfbscrinit.c b/mfb/mfbscrinit.c
index 923db41e1..2e83c9b6e 100644
--- a/mfb/mfbscrinit.c
+++ b/mfb/mfbscrinit.c
@@ -85,7 +85,6 @@ static DepthRec depth = {
1, 1, &VID
};
-#ifndef LOWMEMFTPT
BSFuncRec mfbBSFuncRec = {
mfbSaveAreas,
@@ -95,7 +94,6 @@ BSFuncRec mfbBSFuncRec = {
(BackingStoreGetSpansPixmapProcPtr) 0,
};
-#endif /* ifndef LOWMEMFTPT */
Bool
mfbAllocatePrivates(pScreen, pWinIndex, pGCIndex)
@@ -124,7 +122,6 @@ mfbAllocatePrivates(pScreen, pWinIndex, pGCIndex)
AllocateGCPrivate(pScreen, mfbGCPrivateIndex, sizeof(mfbPrivGC)));
}
-#ifndef LOWMEMFTPT
/* dts * (inch/dot) * (25.4 mm / inch) = mm */
Bool
@@ -171,7 +168,6 @@ mfbScreenInit(pScreen, pbits, xsize, ysize, dpix, dpiy, width)
pScreen->BackingStoreFuncs = mfbBSFuncRec;
return TRUE;
}
-#endif /* ifndef LOWMEMFTPT */
PixmapPtr
mfbGetWindowPixmap(pWin)