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_ #define __wglxext_h_
#endif #endif
#ifdef UNICODE
#define wglUseFontBitmaps wglUseFontBitmapsW
#else
#define wglUseFontBitmaps wglUseFontBitmapsA
#endif
#include "epoxy/wgl_generated.h" #include "epoxy/wgl_generated.h"
bool epoxy_has_wgl_extension(HDC hdc, const char *extension); 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] name = os.path.basename(file).split('.xml')[0]
generator = Generator(name) generator = Generator(name)
generator.parse(file) generator.parse(file)
generator.drop_weird_glx_functions() 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.sort_functions()
generator.resolve_aliases() generator.resolve_aliases()
generator.fixup_bootstrap_function('glGetString', generator.fixup_bootstrap_function('glGetString',

Loading…
Cancel
Save