Changed so that it's obvious that the two code blocks are related.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404250
This commit is contained in:
Sam Lantinga 2009-12-02 07:25:06 +00:00
parent 437235f9d4
commit c1b86636fe

View file

@ -243,7 +243,7 @@ static __inline__ void ConvertNSRect(NSRect *r)
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 ||