win32: Add support for wglUseFontBitmaps().

Fixes #10.
macos/v1.5.9
Eric Anholt 11 years ago
parent 5a37cf88b5
commit e7d3088d71
  1. 6
      include/epoxy/wgl.h
  2. 7
      src/gen_dispatch.py

@ -46,6 +46,12 @@ extern "C" {
#define __wglxext_h_
#endif
#ifdef UNICODE
#define wglUseFontBitmaps wglUseFontBitmapsW
#else
#define wglUseFontBitmaps wglUseFontBitmapsA
#endif
#include "epoxy/wgl_generated.h"
bool epoxy_has_wgl_extension(HDC hdc, const char *extension);

@ -855,7 +855,14 @@ for file in args.files:
name = os.path.basename(file).split('.xml')[0]
generator = Generator(name)
generator.parse(file)
generator.drop_weird_glx_functions()
# This is an ANSI vs Unicode function, handled specially by
# include/epoxy/wgl.h
if 'wglUseFontBitmaps' in generator.functions:
del generator.functions['wglUseFontBitmaps']
generator.sort_functions()
generator.resolve_aliases()
generator.fixup_bootstrap_function('glGetString',

Loading…
Cancel
Save