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

Will you accept a PR that allows setting minimum width/height for resizable windows? #1012

Open
medvednikov opened this issue Mar 16, 2024 · 3 comments

Comments

@medvednikov
Copy link
Contributor

Quite a useful feature, would be nice to have it upstream.

@floooh
Copy link
Owner

floooh commented Mar 17, 2024

Yes if the code isn't too gnarly. Probably best to look at glfwSetWindowSizeLimits() (although tbh, the GLFW code isn't too straightforward at first glance for X11 and Win32).

I'm not sure if it's better to have fixed limits provided in sapp_desc, or a function sapp_set_window_size_limits(), or both.

@medvednikov
Copy link
Contributor Author

I added min_width and min_height to sapp_desc.

@floooh
Copy link
Owner

floooh commented Mar 18, 2024

Sounds good!

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

No branches or pull requests

2 participants