Mercurial > sdl-ios-xcode
changeset 3509:8fde6aeb58df
Changed so that it's obvious that the two code blocks are related.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 02 Dec 2009 07:25:06 +0000 |
parents | a12068b6f44f |
children | 58cbfa81317a |
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 Wed Dec 02 06:10:18 2009 +0000 +++ b/src/video/cocoa/SDL_cocoawindow.m Wed Dec 02 07:25:06 2009 +0000 @@ -243,7 +243,7 @@ point.x = point.x - rect.origin.x; point.y = CGDisplayPixelsHigh(kCGDirectMainDisplay) - point.y - rect.origin.y; } else { - point.x -= window->x; + point.x = point.x - window->x; point.y = CGDisplayPixelsHigh(kCGDirectMainDisplay) - point.y - window->y; } if ( point.x < 0 || point.x >= window->w ||