Formatting.

This commit is contained in:
Camilla Berglund 2010-09-16 05:08:04 +02:00
parent 2999c5d4b8
commit 323e65b3f7
2 changed files with 10 additions and 6 deletions

View File

@ -29,6 +29,7 @@
#include "internal.h" #include "internal.h"
//======================================================================== //========================================================================
// Check whether the display mode should be included in enumeration // Check whether the display mode should be included in enumeration
//======================================================================== //========================================================================
@ -52,9 +53,12 @@ static BOOL modeIsGood(NSDictionary* mode)
static GLFWvidmode vidmodeFromCGDisplayMode(NSDictionary* mode) static GLFWvidmode vidmodeFromCGDisplayMode(NSDictionary* mode)
{ {
unsigned int width = [[mode objectForKey:(id)kCGDisplayWidth] unsignedIntValue]; unsigned int width =
unsigned int height = [[mode objectForKey:(id)kCGDisplayHeight] unsignedIntValue]; [[mode objectForKey:(id)kCGDisplayWidth] unsignedIntValue];
unsigned int bps = [[mode objectForKey:(id)kCGDisplayBitsPerSample] unsignedIntValue]; unsigned int height =
[[mode objectForKey:(id)kCGDisplayHeight] unsignedIntValue];
unsigned int bps =
[[mode objectForKey:(id)kCGDisplayBitsPerSample] unsignedIntValue];
GLFWvidmode result; GLFWvidmode result;
result.width = width; result.width = width;

View File

@ -117,7 +117,7 @@ static NSString* findAppName(void)
// localize(d|able), etc. Loading a nib would save us this horror, but that // localize(d|able), etc. Loading a nib would save us this horror, but that
// doesn't seem like a good thing to require of GLFW's clients. // doesn't seem like a good thing to require of GLFW's clients.
//======================================================================== //========================================================================
static void setUpMenuBar( void ) static void setUpMenuBar(void)
{ {
NSString *appName = findAppName(); NSString *appName = findAppName();