From: José Fonseca Date: Tue, 6 Apr 2010 14:09:26 +0000 (+0100) Subject: Add a few more PFD_xxx names. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=cd57a404979486e80a1d4138394b786e4398da0a;p=apitrace Add a few more PFD_xxx names. --- 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'