mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-03 04:01:06 +00:00
Fixed an issue where the GLControl didn't repaint it's background in the Visual Studio designer.
This commit is contained in:
parent
47b0d1f0fe
commit
c1a691412b
|
@ -111,6 +111,17 @@ namespace OpenTK
|
||||||
this.window_info = null;
|
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
|
#endregion
|
||||||
|
|
||||||
#region --- Public Methods ---
|
#region --- Public Methods ---
|
||||||
|
|
Loading…
Reference in a new issue