Fixed crash

This commit is contained in:
Sam Lantinga
2009-12-06 08:16:23 +00:00
parent 586f3e0dda
commit 2f755299d8

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 &&