From: Dean Herbert Date: Mon, 31 Jul 2017 05:55:43 +0000 (+0900) Subject: Add comment about setting background color X-Git-Tag: v3.0.0~54^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4fe58d95450594496b65082ed5f1b2b5b8552bd8;p=platform%2Fcore%2Fcsapi%2Fopentk.git Add comment about setting background color --- diff --git a/src/OpenTK/Platform/Windows/WinGLNative.cs b/src/OpenTK/Platform/Windows/WinGLNative.cs index a7a8ac5..3e95920 100644 --- a/src/OpenTK/Platform/Windows/WinGLNative.cs +++ b/src/OpenTK/Platform/Windows/WinGLNative.cs @@ -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;