Fix missing ';' in cw.c and unwrap the render wrapper properly.
This commit is contained in:
parent
ae1580c494
commit
e847bcda08
|
@ -685,7 +685,7 @@ miInitializeCompositeWrapper(ScreenPtr pScreen)
|
|||
|
||||
#ifdef RENDER
|
||||
if (GetPictureScreen (pScreen))
|
||||
cwInitializeRender(pScreen)
|
||||
cwInitializeRender(pScreen);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -707,10 +707,8 @@ cwCloseScreen (int i, ScreenPtr pScreen)
|
|||
pScreen->PaintWindowBorder = pScreenPriv->PaintWindowBorder;
|
||||
|
||||
#ifdef RENDER
|
||||
if (ps) {
|
||||
ps->Composite = pScreenPriv->Composite;
|
||||
ps->Glyphs = pScreenPriv->Glyphs;
|
||||
}
|
||||
if (ps)
|
||||
cwFiniRender(pScreen);
|
||||
#endif
|
||||
|
||||
xfree((pointer)pScreenPriv);
|
||||
|
|
|
@ -137,6 +137,9 @@ cwGetBackingDrawable(DrawablePtr pDrawable, int *x_off, int *y_off);
|
|||
void
|
||||
cwInitializeRender (ScreenPtr pScreen);
|
||||
|
||||
void
|
||||
cwFiniRender (ScreenPtr pScreen);
|
||||
|
||||
/* cw.c */
|
||||
void
|
||||
miInitializeCompositeWrapper(ScreenPtr pScreen);
|
||||
|
|
|
@ -455,4 +455,22 @@ cwInitializeRender (ScreenPtr pScreen)
|
|||
cwPsWrap(TriFan, cwTriFan);
|
||||
}
|
||||
|
||||
void
|
||||
cwFiniRender (ScreenPtr pScreen)
|
||||
{
|
||||
cwPsDecl (pScreen);
|
||||
|
||||
cwPsUnwrap(CreatePicture);
|
||||
cwPsUnwrap(DestroyPicture);
|
||||
cwPsUnwrap(ChangePicture);
|
||||
cwPsUnwrap(ValidatePicture);
|
||||
cwPsUnwrap(Composite);
|
||||
cwPsUnwrap(Glyphs);
|
||||
cwPsUnwrap(CompositeRects);
|
||||
cwPsUnwrap(Trapezoids);
|
||||
cwPsUnwrap(Triangles);
|
||||
cwPsUnwrap(TriStrip);
|
||||
cwPsUnwrap(TriFan);
|
||||
}
|
||||
|
||||
#endif /* RENDER */
|
||||
|
|
Loading…
Reference in New Issue