Fixed an issue where the GLControl didn't repaint it's background in the Visual Studio designer.

This commit is contained in:
the_fiddler 2008-05-11 08:09:16 +00:00
parent 47b0d1f0fe
commit c1a691412b

View file

@ -111,6 +111,17 @@ namespace OpenTK
this.window_info = null;
}
/// <summary>
/// Raises the System.Windows.Forms.Control.Paint event.
/// </summary>
/// <param name="e">A System.Windows.Forms.PaintEventArgs that contains the event data.</param>
protected override void OnPaint(PaintEventArgs e)
{
if (DesignMode)
e.Graphics.Clear(BackColor);
base.OnPaint(e);
}
#endregion
#region --- Public Methods ---