From b63db9329d9a19af035c08f66b18dc37af892d8a Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 22 Oct 2010 08:16:37 +0000 Subject: [PATCH] Removed fixed expression that caused compilation error on VS2010 (but not Mono 2.6.7). --- Source/OpenTK/Input/KeyboardState.cs | 2 +- Source/OpenTK/Input/MouseState.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/OpenTK/Input/KeyboardState.cs b/Source/OpenTK/Input/KeyboardState.cs index 955ef547..91c019a8 100644 --- a/Source/OpenTK/Input/KeyboardState.cs +++ b/Source/OpenTK/Input/KeyboardState.cs @@ -122,8 +122,8 @@ namespace OpenTK.Input bool equal = true; unsafe { + int* k2 = other.Keys; fixed (int* k1 = Keys) - fixed (int* k2 = other.Keys) { for (int i = 0; equal && i < NumInts; i++) equal &= *(k1 + i) == *(k2 + i); diff --git a/Source/OpenTK/Input/MouseState.cs b/Source/OpenTK/Input/MouseState.cs index 937833df..e0b5b458 100644 --- a/Source/OpenTK/Input/MouseState.cs +++ b/Source/OpenTK/Input/MouseState.cs @@ -302,8 +302,8 @@ namespace OpenTK.Input bool equal = true; unsafe { + int* b2 = other.Buttons; fixed (int* b1 = Buttons) - fixed (int* b2 = other.Buttons) { for (int i = 0; equal && i < NumInts; i++) equal &= *(b1 + i) == *(b2 + i);