Removed NO_SYSDRAWING in favour of just MINUMAL
authorDean Ellis <dellis1972@googlemail.com>
Tue, 19 May 2015 19:09:04 +0000 (20:09 +0100)
committerDean Ellis <dellis1972@googlemail.com>
Wed, 12 Aug 2015 10:56:12 +0000 (11:56 +0100)
Reverted changes to GLControl.cs
Updated sln to not build OpenTK.GLControl in MINIMAL mode

19 files changed:
OpenTK.sln
Source/GLControl/GLControl.cs
Source/OpenTK/INativeWindow.cs
Source/OpenTK/Input/MouseEventArgs.cs
Source/OpenTK/Math/Point.cs
Source/OpenTK/Math/Rectangle.cs
Source/OpenTK/Math/Size.cs
Source/OpenTK/Minimal.cs
Source/OpenTK/Platform/Linux/LinuxDisplayDriver.cs
Source/OpenTK/Platform/Linux/LinuxInput.cs
Source/OpenTK/Platform/Linux/LinuxNativeWindow.cs
Source/OpenTK/Platform/MacOS/Cocoa/Cocoa.cs
Source/OpenTK/Platform/MacOS/Cocoa/NSFloat.cs
Source/OpenTK/Platform/MacOS/CocoaNativeWindow.cs
Source/OpenTK/Platform/NativeWindowBase.cs
Source/OpenTK/Platform/SDL2/Sdl2DisplayDeviceDriver.cs
Source/OpenTK/Platform/SDL2/Sdl2Mouse.cs
Source/OpenTK/Platform/SDL2/Sdl2NativeWindow.cs
Source/OpenTK/Platform/X11/Functions.cs

index a7ef01613bf7c729b155692d7bb88d6676488fc7..33299241ccbc9712064949aee4c156edaeacb764 100644 (file)
@@ -115,14 +115,12 @@ Global
                {62C0DB35-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
                {62C0DB35-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU
                {62C0DB35-0000-0000-0000-000000000000}.DebugMinimal|Any CPU.ActiveCfg = Debug|Any CPU
-               {62C0DB35-0000-0000-0000-000000000000}.DebugMinimal|Any CPU.Build.0 = Debug|Any CPU
                {62C0DB35-0000-0000-0000-000000000000}.Documentation|Any CPU.ActiveCfg = Documentation|Any CPU
                {62C0DB35-0000-0000-0000-000000000000}.Nsis|Any CPU.ActiveCfg = Nsis|Any CPU
                {62C0DB35-0000-0000-0000-000000000000}.Nsis|Any CPU.Build.0 = Nsis|Any CPU
                {62C0DB35-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU
                {62C0DB35-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU
                {62C0DB35-0000-0000-0000-000000000000}.ReleaseMinimal|Any CPU.ActiveCfg = ReleaseMinimal|Any CPU
-               {62C0DB35-0000-0000-0000-000000000000}.ReleaseMinimal|Any CPU.Build.0 = ReleaseMinimal|Any CPU
                {650C6F3D-33B5-4216-9536-956AB42C0624}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
                {650C6F3D-33B5-4216-9536-956AB42C0624}.DebugMinimal|Any CPU.ActiveCfg = DebugMinimal|Any CPU
                {650C6F3D-33B5-4216-9536-956AB42C0624}.Documentation|Any CPU.ActiveCfg = Documentation|Any CPU
@@ -144,14 +142,12 @@ Global
                {868E37B3-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
                {868E37B3-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU
                {868E37B3-0000-0000-0000-000000000000}.DebugMinimal|Any CPU.ActiveCfg = Debug|Any CPU
-               {868E37B3-0000-0000-0000-000000000000}.DebugMinimal|Any CPU.Build.0 = Debug|Any CPU
                {868E37B3-0000-0000-0000-000000000000}.Documentation|Any CPU.ActiveCfg = Documentation|Any CPU
                {868E37B3-0000-0000-0000-000000000000}.Nsis|Any CPU.ActiveCfg = Nsis|Any CPU
                {868E37B3-0000-0000-0000-000000000000}.Nsis|Any CPU.Build.0 = Nsis|Any CPU
                {868E37B3-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU
                {868E37B3-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU
                {868E37B3-0000-0000-0000-000000000000}.ReleaseMinimal|Any CPU.ActiveCfg = ReleaseMinimal|Any CPU
-               {868E37B3-0000-0000-0000-000000000000}.ReleaseMinimal|Any CPU.Build.0 = ReleaseMinimal|Any CPU
                {A37A7E14-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
                {A37A7E14-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU
                {A37A7E14-0000-0000-0000-000000000000}.DebugMinimal|Any CPU.ActiveCfg = DebugMinimal|Any CPU
@@ -166,14 +162,12 @@ Global
                {A625BE88-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
                {A625BE88-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU
                {A625BE88-0000-0000-0000-000000000000}.DebugMinimal|Any CPU.ActiveCfg = Debug|Any CPU
-               {A625BE88-0000-0000-0000-000000000000}.DebugMinimal|Any CPU.Build.0 = Debug|Any CPU
                {A625BE88-0000-0000-0000-000000000000}.Documentation|Any CPU.ActiveCfg = Documentation|Any CPU
                {A625BE88-0000-0000-0000-000000000000}.Nsis|Any CPU.ActiveCfg = Nsis|Any CPU
                {A625BE88-0000-0000-0000-000000000000}.Nsis|Any CPU.Build.0 = Nsis|Any CPU
                {A625BE88-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU
                {A625BE88-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU
                {A625BE88-0000-0000-0000-000000000000}.ReleaseMinimal|Any CPU.ActiveCfg = ReleaseMinimal|Any CPU
-               {A625BE88-0000-0000-0000-000000000000}.ReleaseMinimal|Any CPU.Build.0 = ReleaseMinimal|Any CPU
                {ADC34399-7613-44D2-90B2-19250F06FE7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
                {ADC34399-7613-44D2-90B2-19250F06FE7A}.DebugMinimal|Any CPU.ActiveCfg = DebugMinimal|Any CPU
                {ADC34399-7613-44D2-90B2-19250F06FE7A}.Documentation|Any CPU.ActiveCfg = Documentation|Any CPU
@@ -209,7 +203,6 @@ Global
                {C4DDD20F-CB4E-43F4-A75C-4A3D668E1F99}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
                {C4DDD20F-CB4E-43F4-A75C-4A3D668E1F99}.Debug|Any CPU.Build.0 = Debug|Any CPU
                {C4DDD20F-CB4E-43F4-A75C-4A3D668E1F99}.DebugMinimal|Any CPU.ActiveCfg = Debug|Any CPU
-               {C4DDD20F-CB4E-43F4-A75C-4A3D668E1F99}.DebugMinimal|Any CPU.Build.0 = Debug|Any CPU
                {C4DDD20F-CB4E-43F4-A75C-4A3D668E1F99}.Documentation|Any CPU.ActiveCfg = Debug|Any CPU
                {C4DDD20F-CB4E-43F4-A75C-4A3D668E1F99}.Documentation|Any CPU.Build.0 = Debug|Any CPU
                {C4DDD20F-CB4E-43F4-A75C-4A3D668E1F99}.Nsis|Any CPU.ActiveCfg = Release|Any CPU
@@ -217,12 +210,8 @@ Global
                {C4DDD20F-CB4E-43F4-A75C-4A3D668E1F99}.Release|Any CPU.ActiveCfg = Release|Any CPU
                {C4DDD20F-CB4E-43F4-A75C-4A3D668E1F99}.Release|Any CPU.Build.0 = Release|Any CPU
                {C4DDD20F-CB4E-43F4-A75C-4A3D668E1F99}.ReleaseMinimal|Any CPU.ActiveCfg = ReleaseMinimal|Any CPU
-               {C4DDD20F-CB4E-43F4-A75C-4A3D668E1F99}.ReleaseMinimal|Any CPU.Build.0 = ReleaseMinimal|Any CPU
        EndGlobalSection
        GlobalSection(SolutionProperties) = preSolution
                HideSolutionNode = FALSE
        EndGlobalSection
-       GlobalSection(MonoDevelopProperties) = preSolution
-               StartupItem = Source\Examples\OpenTK.Examples.csproj
-       EndGlobalSection
 EndGlobal
index b507331230fdfef0e04faedb4d04046475c11db2..ecf5e947a2e52eae3ee52cf763050e24d4703fa7 100644 (file)
@@ -500,7 +500,6 @@ namespace OpenTK
             ValidateContext("GrabScreenshot()");
 
             Bitmap bmp = new Bitmap(this.ClientSize.Width, this.ClientSize.Height);
-                       /*
             System.Drawing.Imaging.BitmapData data =
                 bmp.LockBits(this.ClientRectangle, System.Drawing.Imaging.ImageLockMode.WriteOnly,
                              System.Drawing.Imaging.PixelFormat.Format24bppRgb);
@@ -508,7 +507,6 @@ namespace OpenTK
                           data.Scan0);
             bmp.UnlockBits(data);
             bmp.RotateFlip(RotateFlipType.RotateNoneFlipY);
-*/
                        return bmp;
         }
 
index 765ba67270676e7f23e24d19f06130e48b706ca5..2e915da4a4f97e6946c94c0419d9d20c8bed60d5 100644 (file)
@@ -28,7 +28,7 @@
 using System;
 using System.Collections.Generic;
 using System.ComponentModel;
-#if !NO_SYSDRAWING
+#if !MINIMAL
 using System.Drawing;
 #endif
 using System.Text;
index 274d05dfdc8843e097b4e062b89e4fb9ac52c4da..9fd968106cc4cb46b31dbd2a251cefa03a0201bb 100644 (file)
@@ -28,7 +28,7 @@
 #endregion
 
 using System;
-#if !NO_SYSDRAWING
+#if !MINIMAL
 using System.Drawing;
 #endif
 
index 682bd02d82b5a03cc39428b203938c67d94f7099..dff7c67d328f2c6a7e84859195caf28476162891 100644 (file)
@@ -142,49 +142,6 @@ namespace OpenTK
             return !left.Equals(right);
         }
 
-#if !NO_SYSDRAWING
-        /// <summary>
-        /// Converts an OpenTK.Point instance to a System.Drawing.Point.
-        /// </summary>
-        /// <param name="point">
-        /// The <see cref="Point"/> instance to convert.
-        /// </param>
-        /// <returns>
-        /// A <see cref="System.Drawing.Point"/> instance equivalent to point.
-        /// </returns>
-        public static implicit operator System.Drawing.Point(Point point)
-        {
-            return new System.Drawing.Point(point.X, point.Y);
-        }
-
-        /// <summary>
-        /// Converts a System.Drawing.Point instance to an OpenTK.Point.
-        /// </summary>
-        /// <param name="point">
-        /// The <see cref="System.Drawing.Point"/> instance to convert.
-        /// </param>
-        /// <returns>
-        /// A <see cref="Point"/> instance equivalent to point.
-        /// </returns>
-        public static implicit operator Point(System.Drawing.Point point)
-        {
-            return new Point(point.X, point.Y);
-        }
-
-        /// <summary>
-        /// Converts an OpenTK.Point instance to a System.Drawing.PointF.
-        /// </summary>
-        /// <param name="point">
-        /// The <see cref="Point"/> instance to convert.
-        /// </param>
-        /// <returns>
-        /// A <see cref="System.Drawing.PointF"/> instance equivalent to point.
-        /// </returns>
-        public static implicit operator System.Drawing.PointF(Point point)
-        {
-            return new System.Drawing.PointF(point.X, point.Y);
-        }
-#endif
         /// <summary>
         /// Indicates whether this instance is equal to the specified object.
         /// </summary>
index afc4269b8121b571aaba9a426147901fcc80baa7..f7d73302d0495ce55288cb8a5c73c537dc569aa1 100644 (file)
@@ -31,7 +31,7 @@ using System.Text;
 
 namespace OpenTK
 {
-#if MINIMAL
+    #if MINIMAL
     /// <summary>
     /// Represents a rectangular region on a two-dimensional plane.
     /// </summary>
@@ -257,49 +257,6 @@ namespace OpenTK
             return new Rectangle(x1, y1, x2 - x1, y2 - y1); 
         }
 
-#if !NO_SYSDRAWING
-        /// <summary>
-        /// Converts an OpenTK.Rectangle instance to a System.Drawing.Rectangle.
-        /// </summary>
-        /// <param name="rect">
-        /// The <see cref="Rectangle"/> instance to convert.
-        /// </param>
-        /// <returns>
-        /// A <see cref="System.Drawing.Rectangle"/> instance equivalent to rect.
-        /// </returns>
-        public static implicit operator System.Drawing.Rectangle(Rectangle rect)
-        {
-            return new System.Drawing.Rectangle(rect.Location, rect.Size);
-        }
-
-        /// <summary>
-        /// Converts a System.Drawing.Rectangle instance to an OpenTK.Rectangle.
-        /// </summary>
-        /// <param name="rect">
-        /// The <see cref="System.Drawing.Rectangle"/> instance to convert.
-        /// </param>
-        /// <returns>
-        /// A <see cref="Rectangle"/> instance equivalent to point.
-        /// </returns>
-        public static implicit operator Rectangle(System.Drawing.Rectangle rect)
-        {
-            return new Rectangle(rect.Location, rect.Size);
-        }
-
-        /// <summary>
-        /// Converts an OpenTK.Rectangle instance to a System.Drawing.RectangleF.
-        /// </summary>
-        /// <param name="rect">
-        /// The <see cref="Rectangle"/> instance to convert.
-        /// </param>
-        /// <returns>
-        /// A <see cref="System.Drawing.RectangleF"/> instance equivalent to rect.
-        /// </returns>
-        public static implicit operator System.Drawing.RectangleF(Rectangle rect)
-        {
-            return new System.Drawing.RectangleF(rect.Location, rect.Size);
-        }
-#endif
         /// <summary>
         /// Indicates whether this instance is equal to the specified object.
         /// </summary>
index ca552449fb5971ba44e6a83a378f9a95afd0377d..014ec7656d2e371c16c8bfeb443a9022b47b5114 100644 (file)
@@ -128,49 +128,7 @@ namespace OpenTK
         {
             return !left.Equals(right);
         }
-#if !NO_SYSDRAWING
-        /// <summary>
-        /// Converts an OpenTK.Size instance to a System.Drawing.Size.
-        /// </summary>
-        /// <param name="size">
-        /// The <see cref="Size"/> instance to convert.
-        /// </param>
-        /// <returns>
-        /// A <see cref="System.Drawing.Size"/> instance equivalent to size.
-        /// </returns>
-        public static implicit operator System.Drawing.Size(Size size)
-{
-            return new System.Drawing.Size(size.Width, size.Height);
-        }
 
-        /// <summary>
-        /// Converts a System.Drawing.Size instance to an OpenTK.Size.
-        /// </summary>
-        /// <param name="size">
-        /// The <see cref="System.Drawing.Size"/> instance to convert.
-        /// </param>
-        /// <returns>
-        /// A <see cref="Size"/> instance equivalent to size.
-        /// </returns>
-        public static implicit operator Size(System.Drawing.Size size)
-        {
-            return new Size(size.Width, size.Height);
-        }
-
-        /// <summary>
-        /// Converts an OpenTK.Point instance to a System.Drawing.SizeF.
-        /// </summary>
-        /// <param name="size">
-        /// The <see cref="Size"/> instance to convert.
-        /// </param>
-        /// <returns>
-        /// A <see cref="System.Drawing.SizeF"/> instance equivalent to size.
-        /// </returns>
-        public static implicit operator System.Drawing.SizeF(Size size)
-        {
-            return new System.Drawing.SizeF(size.Width, size.Height);
-         }
-#endif
         /// <summary>
         /// Indicates whether this instance is equal to the specified object.
         /// </summary>
index 7ef9302285a1a8a0fe670dbbb376e21072bb664d..1bc9ea33ee61c349651692fbbcd8099f8bbee0ce 100644 (file)
@@ -1,6 +1,6 @@
 using System;
 using System.Collections.Generic;
-#if !NO_SYSDRAWING
+#if !MINIMAL
 using System.Drawing;
 #endif
 using System.Text;
@@ -706,7 +706,7 @@ namespace OpenTK
         public void Dispose()
         { }
 
-        internal static Icon ExtractAssociatedIcon (string location)
+        public static Icon ExtractAssociatedIcon (string location)
         {
             return null;
         }
index 459b8ac74e51999838ec337c545d79cb1618deb4..0a861d3d63082a2e3cfd448df18356213cd6464c 100644 (file)
@@ -32,7 +32,7 @@ using System.Collections.Generic;
 using System.Diagnostics;
 using OpenTK;
 using OpenTK.Graphics;
-#if !NO_SYSDRAWING
+#if !MINIMAL
 using System.Drawing;
 #endif
 
index a88d48a0dc00e304a10754dba4d0296ae60f4e13..8b7a02ee394ff10e1ae9e0f97f2701602748568b 100644 (file)
@@ -30,7 +30,7 @@
 using System;
 using System.Collections.Generic;
 using System.Diagnostics;
-#if !NO_SYSDRAWING
+#if !MINIMAL
 using System.Drawing;
 #endif
 using System.Runtime.InteropServices;
index b00cfad7d43dd1d3186bdb775bf9510d197ec0ae..81c20a5335be68ca6177b3f418645d7b8a07f509 100644 (file)
@@ -29,7 +29,7 @@
 
 using System;
 using System.Diagnostics;
-#if !NO_SYSDRAWING
+#if !MINIMAL
 using System.Drawing;
 #endif
 using System.Runtime.InteropServices;
index 93810dc062ea028609c0f09d27088e91d71e787d..b2b9d285c96f6efbf516a1bbf0f999ef1c072095 100644 (file)
@@ -29,7 +29,7 @@
 
 using System.Runtime.InteropServices;
 using System;
-#if !NO_SYSDRAWING
+#if !MINIMAL
 using System.Drawing;
 using System.Drawing.Imaging;
 #endif
index d702fd04ae0254d2cdbdf290e386bf51eab974c1..09c7fa39707f10b60bfea70f75230ece423b5f50 100644 (file)
@@ -28,7 +28,7 @@
 #endregion
 
 using System;
-#if !NO_SYSDRAWING
+#if !MINIMAL
 using System.Drawing;
 #endif
 using System.Runtime.InteropServices;
index d0f824ab8b1da8db15dcbf60e66b22713cfd79bc..0795e1cbb5404327d6705c61bf36f977231b00a3 100644 (file)
@@ -30,7 +30,7 @@
 using System;
 using System.ComponentModel;
 using System.Diagnostics;
-#if !NO_SYSDRAWING
+#if !MINIMAL
 using System.Drawing;
 #endif
 using System.Runtime.InteropServices;
index 071c1fca2469eb7bd68cba681d84904a0be5f925..8e1a7ef21ebb6d47a4ae2c2cbe85664317843ad8 100644 (file)
@@ -30,7 +30,7 @@
 using System;
 using System.ComponentModel;
 using System.Diagnostics;
-#if !NO_SYSDRAWING
+#if !MINIMAL
 using System.Drawing;
 #endif
 using OpenTK.Input;
index 94500bb899a48ec7d4ac9fad487dda3877fe8379..4216781c43e285c075a9079b8e2bf72bf4d549e9 100644 (file)
@@ -28,7 +28,7 @@
 using System;
 using System.Collections.Generic;
 using System.Diagnostics;
-#if !NO_SYSDRAWING
+#if !MINIMAL
 using System.Drawing;
 #endif
 
index 9fbf5f84b7a44d1c54173a17abe76c5d52d8cd74..cbccd7eb50e816d45b0d6198fb281a2bfe917439 100644 (file)
@@ -28,7 +28,7 @@
 using System;
 using System.Collections.Generic;
 using System.Diagnostics;
-#if !NO_SYSDRAWING
+#if !MINIMAL
 using System.Drawing;
 #endif
 using OpenTK.Input;
index f19ed6e2a89ede4b1182bd4a9380fed3a74854d8..14bb2dc95303f3c193115ec3f2f264ca71e8126f 100644 (file)
@@ -28,7 +28,7 @@
 using System;
 using System.Collections.Generic;
 using System.Diagnostics;
-#if !NO_SYSDRAWING
+#if !MINIMAL
 using System.Drawing;
 #endif
 #if ANDROID || IPHONE || MINIMAL
index dffaf349441ef5c2503dc0baaf3faffe1319bd57..3b10cf4d999c6490941a1d141c59c16b830b1a7a 100644 (file)
@@ -8,7 +8,7 @@
 
 using System;
 using System.Collections.Generic;
-#if !NO_SYSDRAWING
+#if !MINIMAL
 using System.Drawing;
 #endif
 #if ANDROID || IPHONE || MINIMAL