From 44d859860a3a70382236e9ab9d18faab4d5fb27e Mon Sep 17 00:00:00 2001 From: mantognini Date: Tue, 21 Dec 2010 12:15:12 +0000 Subject: [PATCH] fix mouse Y pos (OSX) git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1761 4e206d99-4929-0410-ac5d-dfc041789085 --- src/SFML/Window/OSX/SFOpenGLView.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Window/OSX/SFOpenGLView.mm b/src/SFML/Window/OSX/SFOpenGLView.mm index 38cfd45d..9631ac44 100644 --- a/src/SFML/Window/OSX/SFOpenGLView.mm +++ b/src/SFML/Window/OSX/SFOpenGLView.mm @@ -187,7 +187,7 @@ NSPoint loc = [self convertPoint:[theEvent locationInWindow] fromView:nil]; // 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); }