Fix compilation errors in glcanvas stubs

This commit is contained in:
Robin Dunn
2020-07-08 09:35:42 -07:00
parent 07941fc888
commit 2e413a1c33

View File

@@ -64,10 +64,9 @@ def run():
module.addHeaderCode('#include <wx/glcanvas.h>')
tools.generateStubs('wxUSE_GLCANVAS', module,
extraHdrCode=('static wxGLAttributes _NullGLAttributes;\n'
'static wxGLContextAttrs _NULLGLContextAttrs;\n'),
typeValMap={'wxGLAttributes &': '_NullGLAttributes',
'wxGLContextAttrs &': '_NULLGLContextAttrs',
extraHdrCode='#define wxGLCanvasName wxT("GLCanvas")\n',
typeValMap={'wxGLAttributes &': '*this',
'wxGLContextAttrs &': '*this',
})
c = module.find('wxGLContext')