summaryrefslogtreecommitdiff
path: root/src/drmmode_display.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r--src/drmmode_display.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index af598999..a58f24dd 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -141,13 +141,15 @@ static PixmapPtr drmmode_create_bo_pixmap(ScrnInfoPtr pScrn,
return pixmap;
fail:
- dixDestroyPixmap(pixmap, 0);
+ pScreen->DestroyPixmap(pixmap);
return NULL;
}
static void drmmode_destroy_bo_pixmap(PixmapPtr pixmap)
{
- dixDestroyPixmap(pixmap, 0);
+ ScreenPtr pScreen = pixmap->drawable.pScreen;
+
+ (*pScreen->DestroyPixmap)(pixmap);
}
static void
@@ -440,7 +442,7 @@ destroy_pixmap_for_fbcon(ScrnInfoPtr pScrn)
return;
if (info->fbcon_pixmap)
- dixDestroyPixmap(info->fbcon_pixmap, 0);
+ pScrn->pScreen->DestroyPixmap(info->fbcon_pixmap);
info->fbcon_pixmap = NULL;
}