Mercurial > sdl-ios-xcode
changeset 3529:09155ec3e291
Fixed crash
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 06 Dec 2009 08:16:23 +0000 |
parents | 59ff7a2beb57 |
children | e96be66e3673 |
files | src/video/cocoa/SDL_cocoawindow.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoawindow.m Sun Dec 06 08:03:38 2009 +0000 +++ b/src/video/cocoa/SDL_cocoawindow.m Sun Dec 06 08:16:23 2009 +0000 @@ -421,7 +421,7 @@ 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 &&