From 94b9e452ebd9438a917b825d8d01137ddaa9e398 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 29 Apr 2012 03:27:05 +0000 Subject: Implement resizable and non-resizable windows. --- pugl_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pugl_test.c') diff --git a/pugl_test.c b/pugl_test.c index 63bc7d6..c209aef 100644 --- a/pugl_test.c +++ b/pugl_test.c @@ -89,7 +89,8 @@ onClose(PuglWindow* win) int main(int argc, char** argv) { - PuglWindow* win = puglCreate(0, "Pugl Test", 512, 512); + bool resizable = argc > 1; + PuglWindow* win = puglCreate(0, "Pugl Test", 512, 512, resizable); puglSetKeyboardFunc(win, onKeyboard); puglSetMotionFunc(win, onMotion); puglSetMouseFunc(win, onMouse); -- cgit v1.2.3