XQuartz: Tiger build fix

http://trac.macports.org/ticket/34364

Regression-from: 662d41acReported-by: default avatarPeter Dyballa <Peter_Dyballa@Freenet.DE>
Signed-off-by: Jeremy Huddleston Sequoia's avatarJeremy Huddleston <jeremyhu@apple.com>
parent 4acbaa30
......@@ -1641,6 +1641,11 @@ handle_mouse:
case NSScrollWheel:
{
#if MAC_OS_X_VERSION_MAX_ALLOWED < 1050
float deltaX = [e deltaX];
float deltaY = [e deltaY];
BOOL isContinuous = NO;
#else
CGFloat deltaX = [e deltaX];
CGFloat deltaY = [e deltaY];
CGEventRef cge = [e CGEvent];
......@@ -1662,6 +1667,7 @@ handle_mouse:
deltaY *= lineHeight / 5.0;
}
#endif
#endif
#if !defined(XPLUGIN_VERSION) || XPLUGIN_VERSION == 0
/* If we're in the background, we need to send a MotionNotify event
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment