From 268e8fccde3da78070093218af1a6acfbb6657c8 Mon Sep 17 00:00:00 2001 From: thefiddler Date: Sun, 4 May 2014 17:01:34 +0200 Subject: [PATCH] [Input] Removed pointless unsafe region --- Source/OpenTK/Input/MouseState.cs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Source/OpenTK/Input/MouseState.cs b/Source/OpenTK/Input/MouseState.cs index 557aa1c1..f6e2259b 100644 --- a/Source/OpenTK/Input/MouseState.cs +++ b/Source/OpenTK/Input/MouseState.cs @@ -292,14 +292,11 @@ namespace OpenTK.Input internal void MergeBits(MouseState other) { - unsafe - { - buttons |= other.buttons; - SetScrollRelative(other.scroll.X, other.scroll.Y); - X += other.X; - Y += other.Y; - IsConnected |= other.IsConnected; - } + buttons |= other.buttons; + SetScrollRelative(other.scroll.X, other.scroll.Y); + X += other.X; + Y += other.Y; + IsConnected |= other.IsConnected; } internal void SetIsConnected(bool value)