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

This commit is contained in:
Sam Lantinga
2009-12-02 07:25:06 +00:00
parent 98d4ce80cb
commit 7b253b6d72

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 ||