Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setSizeLimits #272

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add setSizeLimits #272

wants to merge 1 commit into from

Conversation

DomainsHax
Copy link

No description provided.

@@ -369,6 +369,10 @@ void Screen::setSize(const Vector2i &size) {
#endif
}

void Screen::setSizeLimits(const Vector2i& minsize, const Vector2i& maxsize) {
glfwSetWindowSizeLimits(mGLFWWindow, minsize[0], minsize[1], maxsize[0], maxsize[1]);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use 4 spaces for indentation.

@wjakob
Copy link
Owner

wjakob commented Nov 17, 2017

This looks reasonable, but the function you added is missing Python bindings. Can you please add them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants