From ba66558cecd8d8d070bedd29008edc20bd813e00 Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Fri, 26 Feb 2010 07:49:12 +0000 Subject: [PATCH] Forced alpha component in color buffer for 32 bits mode, on Windows git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1428 4e206d99-4929-0410-ac5d-dfc041789085 --- src/SFML/Window/Win32/WindowImplWin32.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SFML/Window/Win32/WindowImplWin32.cpp b/src/SFML/Window/Win32/WindowImplWin32.cpp index 288e75a5..5cb9c057 100644 --- a/src/SFML/Window/Win32/WindowImplWin32.cpp +++ b/src/SFML/Window/Win32/WindowImplWin32.cpp @@ -599,6 +599,7 @@ void WindowImplWin32::CreateContext(const VideoMode& Mode, WindowSettings& Param PixelDescriptor.cColorBits = static_cast(Mode.BitsPerPixel); PixelDescriptor.cDepthBits = static_cast(Params.DepthBits); PixelDescriptor.cStencilBits = static_cast(Params.StencilBits); + PixelDescriptor.cAlphaBits = Mode.BitsPerPixel == 32 ? 8 : 0; // Get the pixel format that best matches our requirements BestFormat = ChoosePixelFormat(myDeviceContext, &PixelDescriptor);