From af638d4795189d93e967e74792fb51955729dfd0 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sat, 2 Feb 2008 13:39:23 +0000 Subject: [PATCH] Fixed a few warnings. Added [assembly: CLSCompliant(true)] attribute to GameWindow.cs --- Source/OpenTK/GameWindow.cs | 4 +++- Source/OpenTK/Graphics/DisplayDevice.cs | 2 +- Source/OpenTK/Platform/X11/X11Input.cs | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/OpenTK/GameWindow.cs b/Source/OpenTK/GameWindow.cs index 76d597eb..de699d37 100644 --- a/Source/OpenTK/GameWindow.cs +++ b/Source/OpenTK/GameWindow.cs @@ -18,6 +18,8 @@ using OpenTK.Graphics.OpenGL; using OpenTK.Graphics.OpenGL.Enums; using OpenTK.Graphics; +[assembly: CLSCompliant(true)] + namespace OpenTK { /// @@ -57,7 +59,7 @@ namespace OpenTK #region --- Fields --- INativeGLWindow glWindow; - DisplayMode mode; + //DisplayMode mode; ResizeEventArgs resizeEventArgs = new ResizeEventArgs(); diff --git a/Source/OpenTK/Graphics/DisplayDevice.cs b/Source/OpenTK/Graphics/DisplayDevice.cs index 0ae1cb3c..35d05530 100644 --- a/Source/OpenTK/Graphics/DisplayDevice.cs +++ b/Source/OpenTK/Graphics/DisplayDevice.cs @@ -340,7 +340,7 @@ namespace OpenTK.Graphics void MoveToStartPositions() { - int count = 0; + //int count = 0; //foreach (Screen s in Screen.AllScreens) // forms[count++].Location = new System.Drawing.Point(s.Bounds.X, s.Bounds.Y); } diff --git a/Source/OpenTK/Platform/X11/X11Input.cs b/Source/OpenTK/Platform/X11/X11Input.cs index 20fb6864..97910a7f 100644 --- a/Source/OpenTK/Platform/X11/X11Input.cs +++ b/Source/OpenTK/Platform/X11/X11Input.cs @@ -31,7 +31,7 @@ namespace OpenTK.Platform.X11 int keysyms_per_keycode; // The number of KeySyms for each KeyCode. IntPtr[] keysyms; - bool disposed; + //bool disposed; #region --- Constructors ---