mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Formatting pass (no code changes).
This commit is contained in:
parent
a0351391d1
commit
9e4137c0a9
@ -44,7 +44,7 @@ GLFWAPI int glfwGetVideoModes( GLFWvidmode *list, int maxcount )
|
|||||||
int count, i, swap, res1, res2, depth1, depth2;
|
int count, i, swap, res1, res2, depth1, depth2;
|
||||||
GLFWvidmode vm;
|
GLFWvidmode vm;
|
||||||
|
|
||||||
if( !_glfwInitialized || maxcount <= 0 || list == (GLFWvidmode*) 0 )
|
if (!_glfwInitialized || maxcount <= 0 || list == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
// Get list of video modes
|
// Get list of video modes
|
||||||
@ -54,7 +54,7 @@ GLFWAPI int glfwGetVideoModes( GLFWvidmode *list, int maxcount )
|
|||||||
do
|
do
|
||||||
{
|
{
|
||||||
swap = 0;
|
swap = 0;
|
||||||
for( i = 0; i < count-1; ++ i )
|
for (i = 0; i < count - 1; i++)
|
||||||
{
|
{
|
||||||
res1 = list[i].Width*list[i].Height;
|
res1 = list[i].Width*list[i].Height;
|
||||||
depth1 = list[i].RedBits+list[i].GreenBits+list[i].BlueBits;
|
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)
|
GLFWAPI void glfwGetDesktopMode(GLFWvidmode *mode)
|
||||||
{
|
{
|
||||||
if( !_glfwInitialized || mode == (GLFWvidmode*) 0 )
|
if (!_glfwInitialized || mode == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_glfwPlatformGetDesktopMode(mode);
|
_glfwPlatformGetDesktopMode(mode);
|
||||||
|
@ -93,7 +93,7 @@ int _glfwStringInExtensionString( const char *string,
|
|||||||
// OpenGL extensions string. Don't be fooled by sub-strings,
|
// OpenGL extensions string. Don't be fooled by sub-strings,
|
||||||
// etc.
|
// etc.
|
||||||
start = extensions;
|
start = extensions;
|
||||||
while( 1 )
|
for (;;)
|
||||||
{
|
{
|
||||||
where = (GLubyte *) strstr((const char *) start, string);
|
where = (GLubyte *) strstr((const char *) start, string);
|
||||||
if (!where)
|
if (!where)
|
||||||
|
@ -393,8 +393,9 @@ const _GLFWfbconfig *_glfwChooseFBConfig( const _GLFWfbconfig *desired,
|
|||||||
//========================================================================
|
//========================================================================
|
||||||
|
|
||||||
GLFWAPI int glfwOpenWindow(int width, int height,
|
GLFWAPI int glfwOpenWindow(int width, int height,
|
||||||
int redbits, int greenbits, int bluebits, int alphabits,
|
int redbits, int greenbits, int bluebits,
|
||||||
int depthbits, int stencilbits, int mode )
|
int alphabits, int depthbits, int stencilbits,
|
||||||
|
int mode)
|
||||||
{
|
{
|
||||||
_GLFWfbconfig fbconfig;
|
_GLFWfbconfig fbconfig;
|
||||||
_GLFWwndconfig wndconfig;
|
_GLFWwndconfig wndconfig;
|
||||||
@ -568,7 +569,6 @@ GLFWAPI int glfwOpenWindow( int width, int height,
|
|||||||
|
|
||||||
GLFWAPI void glfwOpenWindowHint(int target, int hint)
|
GLFWAPI void glfwOpenWindowHint(int target, int hint)
|
||||||
{
|
{
|
||||||
// Is GLFW initialized?
|
|
||||||
if (!_glfwInitialized)
|
if (!_glfwInitialized)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user