OSX: fix magic mouse swipes compiling on with MAC_OS_X_VERSION_MIN_REQUIRED by checking address not value

This commit is contained in:
Jens Verwiebe 2012-12-29 19:51:44 +00:00
parent 0028418fe8
commit eae167998a

@ -1590,8 +1590,8 @@ GHOST_TSuccess GHOST_SystemCocoa::handleMouseEvent(void *eventPtr)
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
momentum = [event momentumPhase];
#endif
/* standard scrollwheel case */
if (!m_hasMultiTouchTrackpad && momentum==0) {
/* standard scrollwheel case, NULL check address !!! of momentum */
if (!m_hasMultiTouchTrackpad && &momentum == NULL) {
GHOST_TInt32 delta;
double deltaF = [event deltaY];