summaryrefslogtreecommitdiff
path: root/fb
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-06-20 13:27:32 -0400
committerAdam Jackson <ajax@redhat.com>2008-06-20 13:27:32 -0400
commitb55fbca4f0705aeff1c69d3ef851c5ff5af6ed94 (patch)
treec6ab57af8e623892f4ac91d7703af81c779b7b30 /fb
parent155fcecb320dbcfb899d6bcd78048ce0993bf28b (diff)
Bug #12414: Create full-fledged pixmaps in fb24_32ReformatTile().
... instead of creating pixmaps that only fb knows about, which will have no devPrivates for any other subsystem and thus cause havoc if (when) they leak out.
Diffstat (limited to 'fb')
-rw-r--r--fb/fb24_32.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/fb/fb24_32.c b/fb/fb24_32.c
index a03726b8d..1ebd598a8 100644
--- a/fb/fb24_32.c
+++ b/fb/fb24_32.c
@@ -1,5 +1,4 @@
/*
- *
* Copyright © 2000 SuSE, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and its
@@ -544,11 +543,10 @@ fb24_32ReformatTile(PixmapPtr pOldTile, int bitsPerPixel)
int oldXoff, oldYoff;
int newXoff, newYoff;
- pNewTile = fbCreatePixmapBpp (pScreen,
- pOldTile->drawable.width,
- pOldTile->drawable.height,
- pOldTile->drawable.depth,
- bitsPerPixel, 0);
+ pNewTile = pScreen->CreatePixmap(pScreen, pOldTile->drawable.width,
+ pOldTile->drawable.height,
+ pOldTile->drawable.depth,
+ pOldTile->usage_hint);
if (!pNewTile)
return 0;
fbGetDrawable (&pOldTile->drawable,