* Headers/AppKit/NSOpenGL.h,

* Source/NSOpenGLPixelFormat.m: NSOpenGLPixelFormat directly
        * implements
        initWithCoder so that it may marshall the pixel attributes prior
to
        initWithAttributes:. Change the getValues:... method to take an
        int argument instead of long. GLint is mapped to int on most
systems.
        * Source/NSOpenGLContext.m: Use the format decoding to decode an
        * OpenGL context.
        Patch by Clint Smullen <daemonae>.

        * Source/GSLayoutManager.m: Small cleanup in glyph code.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35923 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2012-12-26 19:19:50 +00:00
parent 91c4c487ae
commit 3065898052
5 changed files with 134 additions and 91 deletions

View file

@ -252,12 +252,21 @@ static NSOpenGLPixelFormatAttribute attrs[] =
}
}
- (id) initWithCoder: (NSCoder *)aCoder
- (id) initWithCoder: (NSCoder *)aDecoder
{
self = [super initWithCoder: aCoder];
self = [super initWithCoder: aDecoder];
if (!self)
return nil;
// FIXME: Should set a pixel format like -init does
if ([aDecoder allowsKeyedCoding])
{
[self setPixelFormat: [aDecoder decodeObjectForKey: @"NSPixelFormat"]];
}
else
{
[self setPixelFormat: [[self class] defaultPixelFormat]];
}
[[NSNotificationCenter defaultCenter]
addObserver: self
selector: @selector(_frameChanged:)