diff --git a/ChangeLog b/ChangeLog index 358a7bbf0..a37dad256 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-09-25 Fred Kiefer + + * Source/NSGraphicsContext.m (-initWithContextInfo:): Set some + default values for the graphics context. + 2015-09-21 Fred Kiefer * Headers/AppKit/NSMenu.h, diff --git a/Source/NSGraphicsContext.m b/Source/NSGraphicsContext.m index a5b2fba3a..11694c515 100644 --- a/Source/NSGraphicsContext.m +++ b/Source/NSGraphicsContext.m @@ -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.