Bug 570625, part 6: Add gfxXlibSurface::XScreen(). sr=roc

This commit is contained in:
Chris Jones 2010-09-14 00:23:08 -05:00
parent 8d2b6d00c9
commit b7034dad64
2 changed files with 7 additions and 0 deletions

View File

@ -496,6 +496,12 @@ gfxXlibSurface::FindRenderFormat(Display *dpy, gfxImageFormat format)
return (XRenderPictFormat*)NULL;
}
Screen*
gfxXlibSurface::XScreen()
{
return cairo_xlib_surface_get_screen(CairoSurface());
}
XRenderPictFormat*
gfxXlibSurface::XRenderFormat()
{

View File

@ -85,6 +85,7 @@ public:
virtual const gfxIntSize GetSize() const { return mSize; }
Display* XDisplay() { return mDisplay; }
Screen* XScreen();
Drawable XDrawable() { return mDrawable; }
XRenderPictFormat* XRenderFormat();