forked from AuroraMiddleware/gtk
Quartz: Fix incompatible types in assignment
NSEvent -scrollingDeltaX and -scrollingDeltaY aren't defined before 10.7, so objc assumes that they return a pointer. Trying to cast to a float generates a compiler error.
This commit is contained in:
parent
b2a8e6ed04
commit
d859c921c5
@ -1325,7 +1325,7 @@ gdk_event_translate (GdkEvent *event,
|
||||
GdkScrollDirection direction;
|
||||
float dx;
|
||||
float dy;
|
||||
|
||||
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER
|
||||
if (gdk_quartz_osx_version() >= GDK_OSX_LION &&
|
||||
[nsevent hasPreciseScrollingDeltas])
|
||||
{
|
||||
@ -1338,7 +1338,7 @@ gdk_event_translate (GdkEvent *event,
|
||||
|
||||
/* Fall through for scroll buttons emulation */
|
||||
}
|
||||
|
||||
#endif
|
||||
dx = [nsevent deltaX];
|
||||
dy = [nsevent deltaY];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user