diff options
author | Jean Pierre Cimalando <jp-dev@inbox.ru> | 2021-05-24 00:13:44 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-05-24 13:33:33 -0400 |
commit | 922057ce94be7190058447ffb74c60a56f1cfaa7 (patch) | |
tree | 46a5237221449e79bfbe6908425d71188e21dbc0 /src | |
parent | 5cd46c6ff5e5fb187fc01cc938a6a09aa9c4d24c (diff) | |
download | pugl-922057ce94be7190058447ffb74c60a56f1cfaa7.tar.gz pugl-922057ce94be7190058447ffb74c60a56f1cfaa7.tar.bz2 pugl-922057ce94be7190058447ffb74c60a56f1cfaa7.zip |
Fix the declaration of WGL function types
Diffstat (limited to 'src')
-rw-r--r-- | src/win_gl.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/win_gl.c b/src/win_gl.c index 4abd5ab..1fda81a 100644 --- a/src/win_gl.c +++ b/src/win_gl.c @@ -52,10 +52,16 @@ #define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 #define WGL_CONTEXT_DEBUG_BIT_ARB 0x00000001 -typedef HGLRC (*WglCreateContextAttribs)(HDC, HGLRC, const int*); -typedef BOOL (*WglSwapInterval)(int); -typedef BOOL ( - *WglChoosePixelFormat)(HDC, const int*, const FLOAT*, UINT, int*, UINT*); +typedef HGLRC(WINAPI* WglCreateContextAttribs)(HDC, HGLRC, const int*); + +typedef BOOL(WINAPI* WglSwapInterval)(int); + +typedef BOOL(WINAPI* WglChoosePixelFormat)(HDC, + const int*, + const FLOAT*, + UINT, + int*, + UINT*); typedef struct { WglChoosePixelFormat wglChoosePixelFormat; |