* Source/cairo/CairoPDFSurface.m:

* Source/cairo/CairoContext.m:
* Source/cairo/CairoSurface.m:
* Source/cairo/CairoPSSurface.m:
* Headers/cairo/CairoSurface.h: Add a -isDrawingToScreen method
to CairoSurface. Returns NO for PDF/PS surfaces, yes for others.
Use it to implement -[CairoContext isDrawingToScreen], so that
-[NSGraphicsContext isDrawingToScreen] will return the correct
value.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@35610 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ericwa 2012-09-26 19:09:19 +00:00
parent 2e13792007
commit 0737c31acd
6 changed files with 36 additions and 0 deletions

View file

@ -105,6 +105,13 @@
return YES;
}
- (BOOL) isDrawingToScreen
{
CairoSurface *surface = nil;
[CGSTATE GSCurrentSurface: &surface : NULL : NULL];
return [surface isDrawingToScreen];
}
- (void) flushGraphics
{
// FIXME: Why is this here? When is it called?