We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3577

Summary: Can't set minimal size (message box appears instead) if maximal size wasn't declared (i.e. unlimited)
Product: SDL Reporter: Vitaly Novichkov <admin>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: admin
Version: HG 2.1   
Hardware: All   
OS: Linux   

Description Vitaly Novichkov 2017-02-02 08:34:24 UTC
After this revision https://hg.libsdl.org/SDL/rev/7f08396c7581 I always getting a warning about minimal size larger maximal size.

What I did:
- Created window (hidden) with specified size (800x600)
- called SDL_SetWindowMinimumSize() to set 800x600 as minimal size (but keep maximal size be unlimited)

I think the check must be skipped if minimal/maximal sizes are unlimited and check if opposite size is set.
Comment 1 Sam Lantinga 2017-02-02 08:42:12 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/a15188ff9537