diff --git a/dgl/Window.hpp b/dgl/Window.hpp index 9fead930..f23482a4 100644 --- a/dgl/Window.hpp +++ b/dgl/Window.hpp @@ -52,6 +52,7 @@ public: int getHeight() const noexcept; Size getSize() const noexcept; void setSize(uint width, uint height); + void setSize(Size size); void setTitle(const char* title); diff --git a/dgl/src/Window.cpp b/dgl/src/Window.cpp index 6d32d5f0..2ba6d0e6 100644 --- a/dgl/src/Window.cpp +++ b/dgl/src/Window.cpp @@ -876,6 +876,11 @@ void Window::setSize(uint width, uint height) pData->setSize(width, height); } +void Window::setSize(Size size) +{ + pData->setSize(size.getWidth(), size.getHeight()); +} + void Window::setTitle(const char* title) { pData->setTitle(title);