summaryrefslogtreecommitdiff
path: root/src/smi_crtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/smi_crtc.c')
-rw-r--r--src/smi_crtc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/smi_crtc.c b/src/smi_crtc.c
index 49354ea..0ff4390 100644
--- a/src/smi_crtc.c
+++ b/src/smi_crtc.c
@@ -209,12 +209,13 @@ SMI_CrtcConfigResize(ScrnInfoPtr pScrn,
pSmi->FBOffset = fbArea->offset;
pScrn->fbOffset = pSmi->FBOffset + pSmi->fbMapOffset;
+ pScrn->pScreen->ModifyPixmapHeader(pScrn->pScreen->GetScreenPixmap(pScrn->pScreen),
+ -1,-1,-1,-1,-1, pSmi->FBBase + pSmi->FBOffset);
+
if(pScrn->pixmapPrivate.ptr)
- /* Framebuffer access is disabled */
+ /* The pixmap devPrivate just set may be overwritten by
+ xf86EnableDisableFBAccess */
pScrn->pixmapPrivate.ptr = pSmi->FBBase + pSmi->FBOffset;
- else
- pScrn->pScreen->ModifyPixmapHeader(pScrn->pScreen->GetScreenPixmap(pScrn->pScreen),
- -1,-1,-1,-1,-1, pSmi->FBBase + pSmi->FBOffset);
/* Modify the screen pitch */
pScrn->displayWidth = aligned_pitch / pSmi->Bpp;