summaryrefslogtreecommitdiff
path: root/pugl_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-29 03:27:05 +0000
committerDavid Robillard <d@drobilla.net>2012-04-29 03:27:05 +0000
commit94b9e452ebd9438a917b825d8d01137ddaa9e398 (patch)
treeace1acc489c42311d94f91346ff289127ed339b6 /pugl_test.c
parent4e6368d019e2543e6bf792f182486732d6f5a3f5 (diff)
Implement resizable and non-resizable windows.
Diffstat (limited to 'pugl_test.c')
-rw-r--r--pugl_test.c3
1 files changed, 2 insertions, 1 deletions
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);