XQuartz: Tiger build fix
http://trac.macports.org/ticket/34364
Regression-from: 662d41acdd
Reported-by: Peter Dyballa <Peter_Dyballa@Freenet.DE>
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
parent
4acbaa3027
commit
e0097ce971
|
@ -1641,6 +1641,11 @@ handle_mouse:
|
||||||
|
|
||||||
case NSScrollWheel:
|
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 deltaX = [e deltaX];
|
||||||
CGFloat deltaY = [e deltaY];
|
CGFloat deltaY = [e deltaY];
|
||||||
CGEventRef cge = [e CGEvent];
|
CGEventRef cge = [e CGEvent];
|
||||||
|
@ -1662,6 +1667,7 @@ handle_mouse:
|
||||||
deltaY *= lineHeight / 5.0;
|
deltaY *= lineHeight / 5.0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(XPLUGIN_VERSION) || XPLUGIN_VERSION == 0
|
#if !defined(XPLUGIN_VERSION) || XPLUGIN_VERSION == 0
|
||||||
/* If we're in the background, we need to send a MotionNotify event
|
/* If we're in the background, we need to send a MotionNotify event
|
||||||
|
|
Loading…
Reference in New Issue