From 323e65b3f76ef8fafe36623461294285d206a31d Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 16 Sep 2010 05:08:04 +0200 Subject: [PATCH] Formatting. --- src/cocoa/cocoa_fullscreen.m | 14 +++++++++----- src/cocoa/cocoa_init.m | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/cocoa/cocoa_fullscreen.m b/src/cocoa/cocoa_fullscreen.m index 524e968f..95bd8538 100644 --- a/src/cocoa/cocoa_fullscreen.m +++ b/src/cocoa/cocoa_fullscreen.m @@ -29,6 +29,7 @@ #include "internal.h" + //======================================================================== // Check whether the display mode should be included in enumeration //======================================================================== @@ -42,8 +43,8 @@ static BOOL modeIsGood(NSDictionary* mode) // This seems like a decent compromise, but certain applications may // wish to patch this... return [[mode objectForKey:(id)kCGDisplayBitsPerPixel] intValue] >= 15 && - [mode objectForKey:(id)kCGDisplayModeIsSafeForHardware] != nil && - [mode objectForKey:(id)kCGDisplayModeIsStretched] == nil; + [mode objectForKey:(id)kCGDisplayModeIsSafeForHardware] != nil && + [mode objectForKey:(id)kCGDisplayModeIsStretched] == nil; } //======================================================================== @@ -52,9 +53,12 @@ static BOOL modeIsGood(NSDictionary* mode) static GLFWvidmode vidmodeFromCGDisplayMode(NSDictionary* mode) { - unsigned int width = [[mode objectForKey:(id)kCGDisplayWidth] unsignedIntValue]; - unsigned int height = [[mode objectForKey:(id)kCGDisplayHeight] unsignedIntValue]; - unsigned int bps = [[mode objectForKey:(id)kCGDisplayBitsPerSample] unsignedIntValue]; + unsigned int width = + [[mode objectForKey:(id)kCGDisplayWidth] unsignedIntValue]; + unsigned int height = + [[mode objectForKey:(id)kCGDisplayHeight] unsignedIntValue]; + unsigned int bps = + [[mode objectForKey:(id)kCGDisplayBitsPerSample] unsignedIntValue]; GLFWvidmode result; result.width = width; diff --git a/src/cocoa/cocoa_init.m b/src/cocoa/cocoa_init.m index d9e7f33b..0091a45d 100644 --- a/src/cocoa/cocoa_init.m +++ b/src/cocoa/cocoa_init.m @@ -117,7 +117,7 @@ static NSString* findAppName(void) // 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. //======================================================================== -static void setUpMenuBar( void ) +static void setUpMenuBar(void) { NSString *appName = findAppName();