Tidied up indentation of a few lines; added small comment

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15880 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2003-02-05 03:44:39 +00:00
parent 20ab4fa2df
commit 1ea5e16281

View file

@ -29,13 +29,12 @@
#include <AppKit/NSOpenGL.h>
#include <AppKit/GSDisplayServer.h>
@implementation NSOpenGLContext
+ _classContext
{
Class glContextClass = [GSCurrentServer() glContextClass];
if ( glContextClass == nil )
if (glContextClass == nil)
{
NSWarnMLog(@"Backend doesn't have any gl context");
return nil;
@ -51,7 +50,7 @@
+ allocWithZone: (NSZone *) z
{
Class c = [self _classContext];
if ( c )
if (c)
return NSAllocateObject(c, 0, z);
else
return nil;
@ -64,6 +63,8 @@
+ (NSOpenGLContext *)currentContext
{
/* FIXME - There doesn't seem to be a way to fix the following
* warning. */
return [[self _classContext] currentContext];
}