Using -[NSView convertPoint:fromView:] instead of -[NSView convertPointFromBase:] to support Mac OS X 10.4.

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1463 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
ceylo 2010-03-17 16:19:08 +00:00
parent 1725ffdf71
commit 1527ecd8ba

View file

@ -662,7 +662,7 @@
NSAssert([self view] != nil, @"expected valid window");
NSPoint windowPoint = [[self window] convertScreenToBase:[NSEvent mouseLocation]];
NSPoint viewPoint = [[self view] convertPointFromBase:windowPoint];
NSPoint viewPoint = [[self view] convertPoint:windowPoint fromView:[[[self window] contentView] superview]];
viewPoint.y = [[self view] frame].size.height - viewPoint.y;
return viewPoint;