mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:10:38 +00:00
Merged Trunk changes from rev 35219 to TestPlant branch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@36953 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
343da32c8c
commit
4b27157a46
215 changed files with 13994 additions and 8840 deletions
|
@ -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:)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue