summaryrefslogtreecommitdiffstats
path: root/src/newt/native/WindowsWindow.c
diff options
context:
space:
mode:
authortrembovetski <[email protected]>2009-08-25 15:10:17 -0700
committertrembovetski <[email protected]>2009-08-25 15:10:17 -0700
commit2e550f9fe080de8ecf23059a38e77b13669805b5 (patch)
treea2066d379bb1c15258875c525eb18525bdea1bc1 /src/newt/native/WindowsWindow.c
parent29b675c229e3d797f2c454803e289765b0bc801c (diff)
newt: mac os mouse wheel event support, also made it more consistent with windows
Diffstat (limited to 'src/newt/native/WindowsWindow.c')
-rwxr-xr-xsrc/newt/native/WindowsWindow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newt/native/WindowsWindow.c b/src/newt/native/WindowsWindow.c
index 5628fac81..edc3f0796 100755
--- a/src/newt/native/WindowsWindow.c
+++ b/src/newt/native/WindowsWindow.c
@@ -833,7 +833,7 @@ static LRESULT CALLBACK wndProc(HWND wnd, UINT message,
(jint) EVENT_MOUSE_WHEEL_MOVED,
GetModifiers(),
(jint) eventPt.x, (jint) eventPt.y,
- (jint) 0, (jint) GET_WHEEL_DELTA_WPARAM(wParam));
+ (jint) 0, (jint) (GET_WHEEL_DELTA_WPARAM(wParam)/120.0f));
useDefWindowProc = 1;
break;
}