mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-14 00:01:20 +00:00
Add xglPixmapToRegion
This commit is contained in:
parent
343f965749
commit
cecb668149
3 changed files with 24 additions and 5 deletions
|
|
@ -356,6 +356,24 @@ xglModifyPixmapHeader (PixmapPtr pPixmap,
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
RegionPtr
|
||||
xglPixmapToRegion (PixmapPtr pPixmap)
|
||||
{
|
||||
ScreenPtr pScreen = pPixmap->drawable.pScreen;
|
||||
RegionPtr pRegion;
|
||||
|
||||
XGL_SCREEN_PRIV (pScreen);
|
||||
|
||||
if (!xglSyncBits (&pPixmap->drawable, NullBox))
|
||||
FatalError (XGL_SW_FAILURE_STRING);
|
||||
|
||||
XGL_SCREEN_UNWRAP (BitmapToRegion);
|
||||
pRegion = (*pScreen->BitmapToRegion) (pPixmap);
|
||||
XGL_SCREEN_WRAP (BitmapToRegion, xglPixmapToRegion);
|
||||
|
||||
return pRegion;
|
||||
}
|
||||
|
||||
Bool
|
||||
xglCreatePixmapSurface (PixmapPtr pPixmap)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue