From f099ae6db766397aa8dc0b304c53c515880d04bb Mon Sep 17 00:00:00 2001 From: Fraser Waters Date: Sun, 23 Jul 2017 11:06:04 +0100 Subject: [PATCH 1/2] Print Exception variable in Rewrite --- src/Generator.Rewrite/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Generator.Rewrite/Program.cs b/src/Generator.Rewrite/Program.cs index 0c56be35..ac712126 100644 --- a/src/Generator.Rewrite/Program.cs +++ b/src/Generator.Rewrite/Program.cs @@ -150,6 +150,7 @@ namespace OpenTK.Rewrite catch (InvalidOperationException inex) { Console.WriteLine("Failed to load the assembly. It may already have been rewritten, and the debug symbols no longer match."); + Console.WriteLine(inex); } } From 89b7337061e101915ad17fd9d10787f7599360a8 Mon Sep 17 00:00:00 2001 From: Fraser Waters Date: Sun, 23 Jul 2017 11:06:22 +0100 Subject: [PATCH 2/2] Remove unused fields in MouseDevice --- src/OpenTK/Input/MouseDevice.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/OpenTK/Input/MouseDevice.cs b/src/OpenTK/Input/MouseDevice.cs index 5824b9d0..e281b9aa 100644 --- a/src/OpenTK/Input/MouseDevice.cs +++ b/src/OpenTK/Input/MouseDevice.cs @@ -1,5 +1,4 @@ -#define COMPAT_REV1519 // Keeps compatibility with revision 1519 - // + // // The Open Toolkit Library License // // Copyright (c) 2006 - 2009 the Open Toolkit library. @@ -40,10 +39,6 @@ namespace OpenTK.Input private IntPtr id; private MouseState state; -#if COMPAT_REV1519 - private int wheel_last_accessed = 0; - private Point pos_last_accessed = new Point(); -#endif /// /// Gets a string describing this MouseDevice.