Add comment about setting background color
This commit is contained in:
parent
e44aba39ed
commit
4fe58d9545
1 changed files with 1 additions and 0 deletions
|
@ -942,6 +942,7 @@ namespace OpenTK.Platform.Windows
|
|||
{
|
||||
ExtendedWindowClass wc = new ExtendedWindowClass();
|
||||
wc.Size = ExtendedWindowClass.SizeInBytes;
|
||||
// Setting the background here ensures the window doesn't flash gray/white until the first frame is rendered.
|
||||
wc.Background = Functions.GetStockObject(StockObjects.BLACK_BRUSH);
|
||||
wc.Style = DefaultClassStyle;
|
||||
wc.Instance = Instance;
|
||||
|
|
Loading…
Reference in a new issue