|
|
|
@ -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); |
|
|
|
|