mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-20 17:46:41 +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
|
@ -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…
Add table
Add a link
Reference in a new issue