summaryrefslogtreecommitdiff
path: root/Xprint/raster/Raster.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-04-03 21:45:54 +0000
committerAdam Jackson <ajax@nwnk.net>2006-04-03 21:45:54 +0000
commit373f9f92566290d979730c09c9c5c5d50e23390c (patch)
tree2e5e350109d8187c17ec0e6883122579d47b06ba /Xprint/raster/Raster.c
parentd9b8bfbfafe8758ceb629606607e37546d51ca52 (diff)
Bug #4766: Convert all Xprint drivers to fb.
Diffstat (limited to 'Xprint/raster/Raster.c')
-rw-r--r--Xprint/raster/Raster.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/Xprint/raster/Raster.c b/Xprint/raster/Raster.c
index 781327b33..7ad30b446 100644
--- a/Xprint/raster/Raster.c
+++ b/Xprint/raster/Raster.c
@@ -74,7 +74,7 @@ copyright holders.
#include "windowstr.h"
#include "propertyst.h"
#include "servermd.h" /* needed for IMAGE_BUFSIZE */
-#include "mfb.h"
+#include "fb.h"
#include "mi.h"
#include <X11/extensions/Print.h>
@@ -222,20 +222,13 @@ InitializeRasterDriver(
/*
* Have to allocate maxDim X maxDim to allow for landscape mode.
*/
- mfbScreenInit(pScreen, pPriv->pBits, maxDim, maxDim, maxRes,
- maxRes, maxDim);
+ fbScreenInit(pScreen, pPriv->pBits, maxDim, maxDim, maxRes,
+ maxRes, maxDim, 1);
miInitializeBackingStore(pScreen);
pScreen->blackPixel = 1;
pScreen->whitePixel = 0;
- if(mfbCreateDefColormap(pScreen) == FALSE)
+ if(fbCreateDefColormap(pScreen) == FALSE)
; /* XXX what do I do if it fails? */
-
- /*
- cfbScreenInit(pScreen, pPriv->pBits, maxWidth, maxHeight, maxXres,
- maxYres, maxWidth);
- miInitializeBackingStore(pScreen);
- scalingScreenInit(pScreen);
- */
pScreen->SaveScreen = (SaveScreenProcPtr)_XpBoolNoop;
pPriv->ChangeWindowAttributes = pScreen->ChangeWindowAttributes;