Fixed crash

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404272
This commit is contained in:
Sam Lantinga 2009-12-06 08:16:23 +00:00
parent 52f2433c29
commit 712ccbd13c

View file

@ -421,7 +421,7 @@ Cocoa_CreateWindow(_THIS, SDL_Window * window)
NSScreen *candidate;
int i, count = [screens count];
for (i = 0; i < count; ++i) {
screen = [screens objectAtIndex:i];
candidate = [screens objectAtIndex:i];
NSRect screenRect = [candidate frame];
if (rect.origin.x >= screenRect.origin.x &&
rect.origin.x < screenRect.origin.x + screenRect.size.width &&