Formatting pass (no code changes).

This commit is contained in:
Camilla Berglund 2010-09-08 14:45:52 +02:00
parent a0351391d1
commit 9e4137c0a9
8 changed files with 345 additions and 345 deletions

View File

@ -44,7 +44,7 @@ GLFWAPI int glfwGetVideoModes( GLFWvidmode *list, int maxcount )
int count, i, swap, res1, res2, depth1, depth2;
GLFWvidmode vm;
if( !_glfwInitialized || maxcount <= 0 || list == (GLFWvidmode*) 0 )
if (!_glfwInitialized || maxcount <= 0 || list == NULL)
return 0;
// Get list of video modes
@ -54,7 +54,7 @@ GLFWAPI int glfwGetVideoModes( GLFWvidmode *list, int maxcount )
do
{
swap = 0;
for( i = 0; i < count-1; ++ i )
for (i = 0; i < count - 1; i++)
{
res1 = list[i].Width*list[i].Height;
depth1 = list[i].RedBits+list[i].GreenBits+list[i].BlueBits;
@ -83,7 +83,7 @@ GLFWAPI int glfwGetVideoModes( GLFWvidmode *list, int maxcount )
GLFWAPI void glfwGetDesktopMode(GLFWvidmode *mode)
{
if( !_glfwInitialized || mode == (GLFWvidmode*) 0 )
if (!_glfwInitialized || mode == NULL)
return;
_glfwPlatformGetDesktopMode(mode);

View File

@ -93,7 +93,7 @@ int _glfwStringInExtensionString( const char *string,
// OpenGL extensions string. Don't be fooled by sub-strings,
// etc.
start = extensions;
while( 1 )
for (;;)
{
where = (GLubyte *) strstr((const char *) start, string);
if (!where)

View File

@ -393,8 +393,9 @@ const _GLFWfbconfig *_glfwChooseFBConfig( const _GLFWfbconfig *desired,
//========================================================================
GLFWAPI int glfwOpenWindow(int width, int height,
int redbits, int greenbits, int bluebits, int alphabits,
int depthbits, int stencilbits, int mode )
int redbits, int greenbits, int bluebits,
int alphabits, int depthbits, int stencilbits,
int mode)
{
_GLFWfbconfig fbconfig;
_GLFWwndconfig wndconfig;
@ -568,7 +569,6 @@ GLFWAPI int glfwOpenWindow( int width, int height,
GLFWAPI void glfwOpenWindowHint(int target, int hint)
{
// Is GLFW initialized?
if (!_glfwInitialized)
return;