mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +08:00
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
This commit is contained in:
parent
f30c2871fc
commit
ba66558cec
@ -599,6 +599,7 @@ void WindowImplWin32::CreateContext(const VideoMode& Mode, WindowSettings& Param
|
||||
PixelDescriptor.cColorBits = static_cast<BYTE>(Mode.BitsPerPixel);
|
||||
PixelDescriptor.cDepthBits = static_cast<BYTE>(Params.DepthBits);
|
||||
PixelDescriptor.cStencilBits = static_cast<BYTE>(Params.StencilBits);
|
||||
PixelDescriptor.cAlphaBits = Mode.BitsPerPixel == 32 ? 8 : 0;
|
||||
|
||||
// Get the pixel format that best matches our requirements
|
||||
BestFormat = ChoosePixelFormat(myDeviceContext, &PixelDescriptor);
|
||||
|
Loading…
Reference in New Issue
Block a user