Add comment about setting background color

This commit is contained in:
Dean Herbert 2017-07-31 14:55:43 +09:00
parent e44aba39ed
commit 4fe58d9545

View file

@ -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;