mirror of
https://github.com/glfw/glfw.git
synced 2024-11-11 13:03:52 +00:00
Fixed loop termination bug.
This commit is contained in:
parent
3a755b99d0
commit
06a4afd7de
@ -83,7 +83,7 @@ int _glfwPlatformGetVideoModes(GLFWvidmode* list, int maxcount)
|
|||||||
NSArray* modes = (NSArray*) CGDisplayAvailableModes(CGMainDisplayID());
|
NSArray* modes = (NSArray*) CGDisplayAvailableModes(CGMainDisplayID());
|
||||||
unsigned int i, j = 0, n = [modes count];
|
unsigned int i, j = 0, n = [modes count];
|
||||||
|
|
||||||
for (i = 0; i < n && i < (unsigned)maxcount; i++)
|
for (i = 0; i < n && j < (unsigned)maxcount; i++)
|
||||||
{
|
{
|
||||||
NSDictionary *mode = [modes objectAtIndex:i];
|
NSDictionary *mode = [modes objectAtIndex:i];
|
||||||
if (modeIsGood(mode))
|
if (modeIsGood(mode))
|
||||||
|
Loading…
Reference in New Issue
Block a user