Fix missing ';' in cw.c and unwrap the render wrapper properly.

This commit is contained in:
Eric Anholt 2004-08-06 00:31:28 +00:00
parent ae1580c494
commit e847bcda08
3 changed files with 24 additions and 5 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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 */