]> git.saurik.com Git - wxWidgets.git/commitdiff
Use CGFloat instead of float for mouse wheel event parameters.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 5 Nov 2010 21:42:28 +0000 (21:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 5 Nov 2010 21:42:28 +0000 (21:42 +0000)
This fixes mouse wheel handling in 64 bits where CGFloat has size different
from float.

Closes #12168.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/window.mm

index 9e27c22e6eca2525af757333f9d3e4585c869032..67138edc014c74d9ddeedea681ec1a07bcd760bc 100644 (file)
@@ -387,8 +387,8 @@ bool g_lastButtonWasFakeRight = false ;
 // see http://lists.apple.com/archives/cocoa-dev/2007/Feb/msg00050.html
 
 @interface NSEvent (DeviceDelta)
-- (float)deviceDeltaX;
-- (float)deviceDeltaY;
+- (CGFloat)deviceDeltaX;
+- (CGFloat)deviceDeltaY;
 @end
 
 void wxWidgetCocoaImpl::SetupMouseEvent( wxMouseEvent &wxevent , NSEvent * nsEvent )