mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 12:50:40 +00:00
Coding style fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22019 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
397660b06d
commit
6988bf34c2
60 changed files with 577 additions and 513 deletions
|
@ -107,7 +107,7 @@
|
|||
*/
|
||||
- (NSOpenGLContext*)openGLContext
|
||||
{
|
||||
if ( glcontext == nil )
|
||||
if (glcontext == nil)
|
||||
{
|
||||
glcontext = [[NSOpenGLContext alloc] initWithFormat: pixel_format
|
||||
shareContext: nil];
|
||||
|
@ -181,12 +181,12 @@
|
|||
- (void) lockFocusInRect: (NSRect) aRect
|
||||
{
|
||||
[super lockFocusInRect: aRect];
|
||||
if ( !glcontext )
|
||||
if (!glcontext)
|
||||
{
|
||||
[self openGLContext];
|
||||
NSAssert(glcontext, NSInternalInconsistencyException);
|
||||
}
|
||||
if ( attached == NO && glcontext != nil )
|
||||
if (attached == NO && glcontext != nil)
|
||||
{
|
||||
NSDebugMLLog(@"GL", @"Attaching context to the view");
|
||||
[glcontext setView: self];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue