Commit 712ccbd1 authored by Sam Lantinga's avatar Sam Lantinga

Fixed crash

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404272
parent 52f2433c
...@@ -421,7 +421,7 @@ Cocoa_CreateWindow(_THIS, SDL_Window * window) ...@@ -421,7 +421,7 @@ Cocoa_CreateWindow(_THIS, SDL_Window * window)
NSScreen *candidate; NSScreen *candidate;
int i, count = [screens count]; int i, count = [screens count];
for (i = 0; i < count; ++i) { for (i = 0; i < count; ++i) {
screen = [screens objectAtIndex:i]; candidate = [screens objectAtIndex:i];
NSRect screenRect = [candidate frame]; NSRect screenRect = [candidate frame];
if (rect.origin.x >= screenRect.origin.x && if (rect.origin.x >= screenRect.origin.x &&
rect.origin.x < screenRect.origin.x + screenRect.size.width && rect.origin.x < screenRect.origin.x + screenRect.size.width &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment