Formatting (no code changes).

This commit is contained in:
Camilla Berglund 2010-09-09 02:33:14 +02:00
parent 37f5335b63
commit 8247a6b3eb

View File

@ -581,8 +581,8 @@ if (AGLparameter != 0) \
#define _setCGLAttribute(cglAttributeName, CGLparameter) \ #define _setCGLAttribute(cglAttributeName, CGLparameter) \
if (CGLparameter != 0) \ if (CGLparameter != 0) \
{ \ { \
CGLpixelFormatAttributes[ numCGLAttrs++ ] = cglAttributeName; \ CGLpixelFormatAttributes[numCGLAttrs++] = cglAttributeName; \
CGLpixelFormatAttributes[ numCGLAttrs++ ] = CGLparameter; \ CGLpixelFormatAttributes[numCGLAttrs++] = CGLparameter; \
} }
//======================================================================== //========================================================================
@ -823,20 +823,20 @@ int _glfwPlatformOpenWindow(int width, int height,
CGDisplayIDToOpenGLDisplayMask(kCGDirectMainDisplay)); CGDisplayIDToOpenGLDisplayMask(kCGDirectMainDisplay));
if (fbconfig->stereo) if (fbconfig->stereo)
CGLpixelFormatAttributes[ numCGLAttrs++ ] = kCGLPFAStereo; CGLpixelFormatAttributes[numCGLAttrs++] = kCGLPFAStereo;
if (fbconfig->samples > 1) if (fbconfig->samples > 1)
{ {
_setCGLAttribute(kCGLPFASamples, (CGLPixelFormatAttribute)fbconfig->samples); _setCGLAttribute(kCGLPFASamples, (CGLPixelFormatAttribute)fbconfig->samples);
_setCGLAttribute(kCGLPFASampleBuffers, (CGLPixelFormatAttribute)1); _setCGLAttribute(kCGLPFASampleBuffers, (CGLPixelFormatAttribute)1);
CGLpixelFormatAttributes[ numCGLAttrs++ ] = kCGLPFANoRecovery; CGLpixelFormatAttributes[numCGLAttrs++] = kCGLPFANoRecovery;
} }
CGLpixelFormatAttributes[ numCGLAttrs++ ] = kCGLPFAFullScreen; CGLpixelFormatAttributes[numCGLAttrs++] = kCGLPFAFullScreen;
CGLpixelFormatAttributes[ numCGLAttrs++ ] = kCGLPFADoubleBuffer; CGLpixelFormatAttributes[numCGLAttrs++] = kCGLPFADoubleBuffer;
CGLpixelFormatAttributes[ numCGLAttrs++ ] = kCGLPFAAccelerated; CGLpixelFormatAttributes[numCGLAttrs++] = kCGLPFAAccelerated;
CGLpixelFormatAttributes[ numCGLAttrs++ ] = kCGLPFANoRecovery; CGLpixelFormatAttributes[numCGLAttrs++] = kCGLPFANoRecovery;
CGLpixelFormatAttributes[ numCGLAttrs++ ] = kCGLPFAMinimumPolicy; CGLpixelFormatAttributes[numCGLAttrs++] = kCGLPFAMinimumPolicy;
_setCGLAttribute(kCGLPFAAccumSize, _setCGLAttribute(kCGLPFAAccumSize,
(CGLPixelFormatAttribute)( fbconfig->accumRedBits \ (CGLPixelFormatAttribute)( fbconfig->accumRedBits \
@ -849,7 +849,7 @@ int _glfwPlatformOpenWindow(int width, int height,
_setCGLAttribute(kCGLPFAStencilSize, (CGLPixelFormatAttribute)fbconfig->stencilBits); _setCGLAttribute(kCGLPFAStencilSize, (CGLPixelFormatAttribute)fbconfig->stencilBits);
_setCGLAttribute(kCGLPFAAuxBuffers, (CGLPixelFormatAttribute)fbconfig->auxBuffers); _setCGLAttribute(kCGLPFAAuxBuffers, (CGLPixelFormatAttribute)fbconfig->auxBuffers);
CGLpixelFormatAttributes[ numCGLAttrs++ ] = (CGLPixelFormatAttribute)NULL; CGLpixelFormatAttributes[numCGLAttrs++] = (CGLPixelFormatAttribute)NULL;
// create a suitable pixel format with above attributes.. // create a suitable pixel format with above attributes..
cglErr = CGLChoosePixelFormat(CGLpixelFormatAttributes, cglErr = CGLChoosePixelFormat(CGLpixelFormatAttributes,