mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-31 01:11:00 +00:00
cleaned up c99-isms
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28903 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1f84a6a21f
commit
71d0bbdcaa
2 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2009-10-28 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* Source/x11/XGGLFormat.m
|
||||||
|
cleaned up c99-isms
|
||||||
|
|
||||||
2009-10-25 Thomas Gamper <icicle@cg.tuwien.ac.at>
|
2009-10-25 Thomas Gamper <icicle@cg.tuwien.ac.at>
|
||||||
|
|
||||||
* Source/x11/XGServerWindow.m
|
* Source/x11/XGServerWindow.m
|
||||||
|
|
|
@ -77,10 +77,11 @@
|
||||||
forAttribute: (NSOpenGLPixelFormatAttribute)attrib
|
forAttribute: (NSOpenGLPixelFormatAttribute)attrib
|
||||||
forVirtualScreen: (GLint)screen
|
forVirtualScreen: (GLint)screen
|
||||||
{
|
{
|
||||||
|
int error;
|
||||||
|
|
||||||
NSAssert((fbconfig != NULL || visualinfo != NULL) && configurationCount > 0,
|
NSAssert((fbconfig != NULL || visualinfo != NULL) && configurationCount > 0,
|
||||||
NSInternalInconsistencyException);
|
NSInternalInconsistencyException);
|
||||||
|
|
||||||
int error;
|
|
||||||
|
|
||||||
if (glxminorversion >= 3)
|
if (glxminorversion >= 3)
|
||||||
{
|
{
|
||||||
|
@ -308,6 +309,9 @@ do \
|
||||||
|
|
||||||
- (id)initWithAttributes:(NSOpenGLPixelFormatAttribute *)attribs
|
- (id)initWithAttributes:(NSOpenGLPixelFormatAttribute *)attribs
|
||||||
{
|
{
|
||||||
|
NSMutableData * glxAttributes;
|
||||||
|
NSDictionary * dsattributes;
|
||||||
|
|
||||||
self = [super init];
|
self = [super init];
|
||||||
|
|
||||||
fbconfig = NULL;
|
fbconfig = NULL;
|
||||||
|
@ -319,8 +323,8 @@ do \
|
||||||
glxminorversion = [XGGLPixelFormat glxMinorVersion];
|
glxminorversion = [XGGLPixelFormat glxMinorVersion];
|
||||||
NSDebugMLLog(@"GLX", @"minor version %d", glxminorversion);
|
NSDebugMLLog(@"GLX", @"minor version %d", glxminorversion);
|
||||||
|
|
||||||
NSMutableData * glxAttributes = [self assembleGLXAttributes:attribs];
|
glxAttributes = [self assembleGLXAttributes:attribs];
|
||||||
NSDictionary * dsattributes = [GSCurrentServer() attributes];
|
dsattributes = [GSCurrentServer() attributes];
|
||||||
|
|
||||||
if (glxminorversion >= 3)
|
if (glxminorversion >= 3)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue