diff options
Diffstat (limited to 'examples/pugl_cpp_demo.cpp')
-rw-r--r-- | examples/pugl_cpp_demo.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/pugl_cpp_demo.cpp b/examples/pugl_cpp_demo.cpp index 7794529..015e7aa 100644 --- a/examples/pugl_cpp_demo.cpp +++ b/examples/pugl_cpp_demo.cpp @@ -115,10 +115,11 @@ main(int argc, char** argv) world.setClassName("PuglCppDemo"); view.setWindowTitle("Pugl C++ Demo"); - view.setDefaultSize(512, 512); - view.setMinSize(64, 64); - view.setMaxSize(256, 256); - view.setAspectRatio(1, 1, 16, 9); + view.setSizeHint(pugl::SizeHint::defaultSize, 512, 512); + view.setSizeHint(pugl::SizeHint::minSize, 64, 64); + view.setSizeHint(pugl::SizeHint::maxSize, 1024, 1024); + view.setSizeHint(pugl::SizeHint::minAspect, 1, 1); + view.setSizeHint(pugl::SizeHint::maxAspect, 16, 9); view.setBackend(pugl::glBackend()); view.setHint(pugl::ViewHint::resizable, opts.resizable); view.setHint(pugl::ViewHint::samples, opts.samples); |