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 - Can't set minimal size (message box appears instead) if maximal size wasn't declared (i.e. unlimited)
Summary: Can't set minimal size (message box appears instead) if maximal size wasn't d...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.1
Hardware: All Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-02 08:34 UTC by Vitaly Novichkov
Modified: 2017-02-02 08:42 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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