diff options
author | David Robillard <d@drobilla.net> | 2014-01-27 16:48:52 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-01-27 16:48:52 +0000 |
commit | a983550a464d14ec2a79fa93021b2f02b64d20fa (patch) | |
tree | e7a1d0498278be81b9ba423b87b8a980f6aa7072 | |
parent | 55962a68aada2975d78899371788a97e943b1ce3 (diff) |
Strict prototypes.
-rw-r--r-- | pugl/pugl_internal.h | 2 | ||||
-rw-r--r-- | pugl/pugl_osx.m | 4 | ||||
-rw-r--r-- | pugl/pugl_win.cpp | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h index 8cdada8..88f59f2 100644 --- a/pugl/pugl_internal.h +++ b/pugl/pugl_internal.h @@ -24,6 +24,8 @@ #include "pugl.h" +void puglDefaultReshape(PuglView* view, int width, int height); + typedef struct PuglInternalsImpl PuglInternals; struct PuglViewImpl { diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m index c318d91..d091a11 100644 --- a/pugl/pugl_osx.m +++ b/pugl/pugl_osx.m @@ -72,7 +72,7 @@ @end -void +static void puglDisplay(PuglView* view) { if (view->displayFunc) { @@ -169,7 +169,7 @@ puglDisplay(PuglView* view) - (void) drawRect:(NSRect)rect { - puglDisplay(puglview); + display(puglview); glFlush(); glSwapAPPLE(); } diff --git a/pugl/pugl_win.cpp b/pugl/pugl_win.cpp index 8ed19d8..d72dc83 100644 --- a/pugl/pugl_win.cpp +++ b/pugl/pugl_win.cpp @@ -166,7 +166,7 @@ puglReshape(PuglView* view, int width, int height) view->height = height; } -void +static void puglDisplay(PuglView* view) { wglMakeCurrent(view->impl->hdc, view->impl->hglrc); |