fix mouse Y pos (OSX)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1761 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
e9cccf0e6f
commit
44d859860a
@ -187,7 +187,7 @@
|
|||||||
|
|
||||||
NSPoint loc = [self convertPoint:[theEvent locationInWindow] fromView:nil];
|
NSPoint loc = [self convertPoint:[theEvent locationInWindow] fromView:nil];
|
||||||
// Don't forget to change to SFML coord system.
|
// Don't forget to change to SFML coord system.
|
||||||
float h = [[theEvent window] frame].size.height;
|
float h = [self frame].size.height;
|
||||||
myRequester->MouseMovedAt(loc.x, h - loc.y);
|
myRequester->MouseMovedAt(loc.x, h - loc.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user