codam-coding-college/MLX42

[REQUEST] Document "don't care" option for mlx_set_window_limit

Closed this issue · 1 comments

Is your feature request related to a problem? Please describe.
I want to limit the minimum size of the window in my so_long, but not the maximum size

Describe the solution you'd like
I want mlx_set_window_limit have documented special values for limits I don't care about

Describe alternatives you've considered
At the moment I do

mlx_set_window_limit(mlx, min_w, min_h, -1, -1);

It works because -1 is the value of GLFW_DONT_CARE and mlx_set_window_limit just passes it to glfwSetWindowSizeLimits.

Additional context
I think that explicit MLX_DONT_CARE constant would be better than passing reverse-engineered -1.

Resolved by just documenting this instead. Don't feel like adding a define for this as I have no use for it anywhere else on first glance.

If I have a use for it somewhere else as well I will consider adding the define over just resolving this by adding some docs.