* Source/NSGraphicsContext.m (-initWithContextInfo:): Set some

default values for the graphics context.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39017 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2015-09-25 08:34:25 +00:00
parent 065d45ff59
commit c6ff85bf23
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2015-09-25 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSGraphicsContext.m (-initWithContextInfo:): Set some
default values for the graphics context.
2015-09-21 Fred Kiefer <FredKiefer@gmx.de>
* Headers/AppKit/NSMenu.h,

View file

@ -323,6 +323,12 @@ NSGraphicsContext *GSCurrentContext(void)
initWithCapacity: 1];
usedFonts = nil;
// Set some default values
[self setShouldAntialias: YES];
[self setImageInterpolation: NSImageInterpolationNone];
[self setPatternPhase: NSMakePoint(0.0, 0.0)];
[self setCompositingOperation: NSCompositeSourceOver];
/*
* The classMethodTable dictionary and the list of all contexts must both
* be protected from other threads.