diff --git a/Source/OpenTK/Platform/GdiPlus.cs b/Source/OpenTK/Platform/GdiPlus.cs index 24538796..16a1df42 100644 --- a/Source/OpenTK/Platform/GdiPlus.cs +++ b/Source/OpenTK/Platform/GdiPlus.cs @@ -26,10 +26,10 @@ namespace OpenTK.Platform static GdiPlus() { - if (Configuration.RunningOnWindows) + if (Configuration.RunningOnWindows && !Configuration.RunningOnMono) internals = new Windows.WinGdiPlusInternals(); else - internals = new X11.X11GdiPlusInternals(); + internals = new X11.X11GdiPlusInternals(); // This class is Mono-specific and works on all platforms. } #endregion diff --git a/Source/OpenTK/Platform/X11/X11GdiPlusInternals.cs b/Source/OpenTK/Platform/X11/X11GdiPlusInternals.cs index b197517a..45407b8d 100644 --- a/Source/OpenTK/Platform/X11/X11GdiPlusInternals.cs +++ b/Source/OpenTK/Platform/X11/X11GdiPlusInternals.cs @@ -14,6 +14,8 @@ using System.Reflection; namespace OpenTK.Platform.X11 { + // Note: This class is Mono-specific, not X11-specific! + // It works on all platforms (windows, linux, macos) as long as we are running on Mono. class X11GdiPlusInternals : IGdiPlusInternals { static readonly PropertyInfo native_graphics_property, native_font_property, native_string_format_property;