From e6baa0a42f31a398544ecaef7ced0a96ffd8cd23 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sat, 8 Nov 2008 21:44:36 +0000 Subject: [PATCH] Possible fix for overflow exception on mouse wheel movement in x64 mode. --- Source/OpenTK/Platform/Windows/WMInput.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/Windows/WMInput.cs b/Source/OpenTK/Platform/Windows/WMInput.cs index 1f6df515..53ba800b 100644 --- a/Source/OpenTK/Platform/Windows/WMInput.cs +++ b/Source/OpenTK/Platform/Windows/WMInput.cs @@ -80,7 +80,7 @@ namespace OpenTK.Platform.Windows return; case WindowMessage.MOUSEWHEEL: - mouse.Wheel += (int)(msg.WParam.ToInt32() >> 16) / 120; + mouse.Wheel += (msg.WParam.ToInt32() >> 16) / 120; return; case WindowMessage.LBUTTONDOWN: