mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 05:32:11 +00:00
* 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:
parent
065d45ff59
commit
c6ff85bf23
2 changed files with 11 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue