diff options
author | David Robillard <d@drobilla.net> | 2012-04-29 03:27:05 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-29 03:27:05 +0000 |
commit | 94b9e452ebd9438a917b825d8d01137ddaa9e398 (patch) | |
tree | ace1acc489c42311d94f91346ff289127ed339b6 /pugl_test.c | |
parent | 4e6368d019e2543e6bf792f182486732d6f5a3f5 (diff) | |
download | pugl-94b9e452ebd9438a917b825d8d01137ddaa9e398.tar.gz pugl-94b9e452ebd9438a917b825d8d01137ddaa9e398.tar.bz2 pugl-94b9e452ebd9438a917b825d8d01137ddaa9e398.zip |
Implement resizable and non-resizable windows.
Diffstat (limited to 'pugl_test.c')
-rw-r--r-- | pugl_test.c | 3 |
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); |