From cd57a404979486e80a1d4138394b786e4398da0a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Tue, 6 Apr 2010 15:09:26 +0100 Subject: [PATCH] Add a few more PFD_xxx names. --- opengl32.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/opengl32.py b/opengl32.py index b66b4da..7d3b4cd 100644 --- a/opengl32.py +++ b/opengl32.py @@ -455,7 +455,10 @@ PFD = Flags(DWORD, [ "PFD_SWAP_COPY", "PFD_SWAP_LAYER_BUFFERS", "PFD_GENERIC_ACCELERATED", - #"PFD_SUPPORT_DIRECTDRAW", + "PFD_SUPPORT_DIRECTDRAW", + "PFD_DEPTH_DONTCARE", + "PFD_DOUBLEBUFFER_DONTCARE", + "PFD_STEREO_DONTCARE", ]) PIXELFORMATDESCRIPTOR = Struct("PIXELFORMATDESCRIPTOR", [ @@ -1266,6 +1269,13 @@ if __name__ == '__main__': print print '#include "log.hpp"' print + print '#ifndef PFD_SUPPORT_DIRECTDRAW' + print '#define PFD_SUPPORT_DIRECTDRAW 0x00002000' + print '#endif' + print '#ifndef PFD_SUPPORT_COMPOSITION' + print '#define PFD_SUPPORT_COMPOSITION 0x00008000' + print '#endif' + print print '#ifdef __MINGW32__' print '' print 'typedef struct _WGLSWAP' -- 2.45.2