From ead151ea4f088f73bd7534ac507c7d24872faee4 Mon Sep 17 00:00:00 2001 From: thefiddler Date: Mon, 21 Jul 2014 16:03:37 +0200 Subject: [PATCH] Fixed a large number of warnings --- Source/OpenTK/Input/Mouse.cs | 4 ++-- Source/OpenTK/Platform/Linux/LinuxNativeWindow.cs | 2 -- Source/OpenTK/Platform/SDL2/Sdl2Keyboard.cs | 1 - Source/OpenTK/Platform/Windows/API.cs | 3 +++ Source/OpenTK/Platform/X11/X11GLNative.cs | 8 -------- 5 files changed, 5 insertions(+), 13 deletions(-) diff --git a/Source/OpenTK/Input/Mouse.cs b/Source/OpenTK/Input/Mouse.cs index 6caeb83..132b059 100644 --- a/Source/OpenTK/Input/Mouse.cs +++ b/Source/OpenTK/Input/Mouse.cs @@ -53,7 +53,7 @@ namespace OpenTK.Input /// typically between 200 and 2000 DPI. /// Use to retrieve the state of a specific mouse device. /// Use to retrieve the absolute coordinates of the mouse cursor. - /// Use for event-based mouse input. + /// Use for event-based mouse input. /// /// A structure representing the combined state of all mouse devices. public static MouseState GetState() @@ -71,7 +71,7 @@ namespace OpenTK.Input /// typically between 200 and 2000 DPI. /// Use to retrieve the combined state of all mouse devices. /// Use to retrieve the absolute coordinates of the mouse cursor. - /// Use for event-based mouse input. + /// Use for event-based mouse input. /// /// The index of the mouse device. /// A structure representing the state for the specified mouse device. diff --git a/Source/OpenTK/Platform/Linux/LinuxNativeWindow.cs b/Source/OpenTK/Platform/Linux/LinuxNativeWindow.cs index 961381e..db8ebd1 100644 --- a/Source/OpenTK/Platform/Linux/LinuxNativeWindow.cs +++ b/Source/OpenTK/Platform/Linux/LinuxNativeWindow.cs @@ -58,8 +58,6 @@ namespace OpenTK.Platform.Linux BufferObject cursor_default; BufferObject cursor_empty; - IntPtr gbm_surface; - public LinuxNativeWindow(IntPtr display, IntPtr gbm, int fd, int x, int y, int width, int height, string title, GraphicsMode mode, GameWindowFlags options, diff --git a/Source/OpenTK/Platform/SDL2/Sdl2Keyboard.cs b/Source/OpenTK/Platform/SDL2/Sdl2Keyboard.cs index d58c5f7..bb84d4a 100644 --- a/Source/OpenTK/Platform/SDL2/Sdl2Keyboard.cs +++ b/Source/OpenTK/Platform/SDL2/Sdl2Keyboard.cs @@ -37,7 +37,6 @@ namespace OpenTK.Platform.SDL2 readonly List keyboards = new List(); - readonly IList keyboards_readonly; public Sdl2Keyboard() { diff --git a/Source/OpenTK/Platform/Windows/API.cs b/Source/OpenTK/Platform/Windows/API.cs index 167dcb5..d8fa295 100644 --- a/Source/OpenTK/Platform/Windows/API.cs +++ b/Source/OpenTK/Platform/Windows/API.cs @@ -3141,6 +3141,9 @@ namespace OpenTK.Platform.Windows /// public IntPtr ExtraInfo; + /// + /// Returns the size of a MouseMovePoint in bytes. + /// public static readonly int SizeInBytes = Marshal.SizeOf(default(MouseMovePoint)); } diff --git a/Source/OpenTK/Platform/X11/X11GLNative.cs b/Source/OpenTK/Platform/X11/X11GLNative.cs index 388c45a..2ee94bb 100644 --- a/Source/OpenTK/Platform/X11/X11GLNative.cs +++ b/Source/OpenTK/Platform/X11/X11GLNative.cs @@ -85,20 +85,12 @@ namespace OpenTK.Platform.X11 IntPtr _atom_net_frame_extents; - IntPtr _atom_wm_class; - readonly IntPtr _atom_xa_cardinal = new IntPtr(6); - - //IntPtr _atom_motif_wm_hints; - //IntPtr _atom_kde_wm_hints; - //IntPtr _atom_kde_net_wm_hints; static readonly IntPtr _atom_remove = (IntPtr)0; static readonly IntPtr _atom_add = (IntPtr)1; static readonly IntPtr _atom_toggle = (IntPtr)2; - // Used by OpenTK to detect mouse warp events - Rectangle bounds, client_rectangle; int border_left, border_right, border_top, border_bottom; Icon icon; -- 2.7.4