summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-09 14:55:48 +0000
committerDavid Robillard <d@drobilla.net>2012-08-09 14:55:48 +0000
commit5ecc055c068ccd13c4e4129a97a2aec4f505866e (patch)
tree3f33561ee7c6ecc57c00ac6ab81d17feb959bbca
parentc8b6dddd42420e07c9f0b7b1eb8614547e821dec (diff)
Fix lax prototypes.
-rw-r--r--pugl/pugl_internal.h2
-rw-r--r--pugl/pugl_x11.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h
index 15e2f0a..61d287a 100644
--- a/pugl/pugl_internal.h
+++ b/pugl/pugl_internal.h
@@ -64,7 +64,7 @@ puglGetModifiers(PuglView* view)
return view->mods;
}
-void
+static inline void
puglDefaultReshape(PuglView* view, int width, int height)
{
glMatrixMode(GL_PROJECTION);
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c
index f3debec..16b0cd7 100644
--- a/pugl/pugl_x11.c
+++ b/pugl/pugl_x11.c
@@ -169,7 +169,7 @@ puglDestroy(PuglView* view)
free(view);
}
-void
+static void
puglReshape(PuglView* view, int width, int height)
{
glXMakeCurrent(view->impl->display, view->impl->win, view->impl->ctx);
@@ -184,7 +184,7 @@ puglReshape(PuglView* view, int width, int height)
view->height = height;
}
-void
+static void
puglDisplay(PuglView* view)
{
glXMakeCurrent(view->impl->display, view->impl->win, view->impl->ctx);