# HG changeset patch # User Sam Lantinga # Date 1259738706 0 # Node ID 8fde6aeb58df9ba668592fa81a7432b1d1ce00cc # Parent a12068b6f44fd66d8ca8eb53e120d41b1aec44e9 Changed so that it's obvious that the two code blocks are related. diff -r a12068b6f44f -r 8fde6aeb58df src/video/cocoa/SDL_cocoawindow.m --- 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 ||