Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorJens Verwiebe <info@jensverwiebe.de>2012-12-29 23:51:44 +0400
committerJens Verwiebe <info@jensverwiebe.de>2012-12-29 23:51:44 +0400
commiteae167998a17481d4758b87ad068111fa8e3d881 (patch)
treed2919e10cf669390406c94a62abd9979b3423df9 /intern
parent0028418fe85c737c2122285d5968a432091bf0d2 (diff)
OSX: fix magic mouse swipes compiling on with MAC_OS_X_VERSION_MIN_REQUIRED by checking address not value
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_SystemCocoa.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_SystemCocoa.mm b/intern/ghost/intern/GHOST_SystemCocoa.mm
index fd777bd234f..d88b90d8f05 100644
--- a/intern/ghost/intern/GHOST_SystemCocoa.mm
+++ b/intern/ghost/intern/GHOST_SystemCocoa.mm
@@ -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];