mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-30 08:51:03 +00:00
* 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:
parent
2e13792007
commit
0737c31acd
6 changed files with 36 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue