Fixed crash
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404272
This commit is contained in:
parent
52f2433c29
commit
712ccbd13c
1 changed files with 1 additions and 1 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue