summaryrefslogtreecommitdiff
path: root/src/glamo-kms-driver.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-08-25 18:04:58 +0100
committerThomas White <taw@bitwiz.org.uk>2009-08-25 18:04:58 +0100
commitd91c2881159e177d1edc6ffe916c93050b7c0ae2 (patch)
treea61a77f9cf0b900a7b1210b9f011eecbc1cc7b74 /src/glamo-kms-driver.c
parent48f66451ac799520659b0739222cc1d0f6f65f09 (diff)
Get rid of ModifyPixmapHeader hook
This has the effect of fixing text rendering, and also makes the code a lot clearer.
Diffstat (limited to 'src/glamo-kms-driver.c')
-rw-r--r--src/glamo-kms-driver.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/glamo-kms-driver.c b/src/glamo-kms-driver.c
index 32fdb4e..b2cfa7a 100644
--- a/src/glamo-kms-driver.c
+++ b/src/glamo-kms-driver.c
@@ -125,11 +125,10 @@ static Bool CreateFrontBuffer(ScrnInfoPtr pScrn)
PixmapPtr rootPixmap = pScreen->GetScreenPixmap(pScreen);
unsigned int flags;
- pScreen->ModifyPixmapHeader(rootPixmap,
+ GlamoKMSExaMakeFullyFledged(rootPixmap,
pScrn->virtualX, pScrn->virtualY,
pScrn->depth, pScrn->bitsPerPixel,
- pScrn->displayWidth * pScrn->bitsPerPixel/8,
- NULL);
+ pScrn->displayWidth*pScrn->bitsPerPixel/8);
drmModeAddFB(pGlamo->drm_fd,
pScrn->virtualX,
@@ -300,7 +299,7 @@ static Bool GlamoKMSCreateScreenResources(ScreenPtr pScreen)
rootPixmap = pScreen->GetScreenPixmap(pScreen);
- if (!pScreen->ModifyPixmapHeader(rootPixmap, -1, -1, -1, -1, -1, NULL))
+ if (!GlamoKMSExaMakeFullyFledged(rootPixmap, -1, -1, -1, -1, -1))
FatalError("Couldn't adjust screen pixmap\n");
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Adding framebuffer....!\n");