| Summary: | Resizable not settable after window creation | ||
|---|---|---|---|
| Product: | SDL | Reporter: | cra0zy <cra0zy> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | amaranth72, IntellectualKitty |
| Version: | 2.0.4 | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
cra0zy@gmail.com
2016-03-13 13:14:25 UTC
(In reply to cra0zy@gmail.com from comment #0) > I know that SDL 1.2 could change this property. Are you sure? As far as I know, resizing was only specified in SDL_SetVideoMode (which (re)creates the window). I knew about the function, but I didn't know it recreated the entire window just to do it... Are there any API limitations that prevent you from adding this functionality? on iOS nothing prevents it, and on OS X nothing prevents it in 10.6+. SDL still supports 10.5 but probably not for much longer. I don't know the other platform APIs well enough to say whether it's possible in Windows / Linux / Android without double-checking. Er, to clarify, I mean the platform APIs do support changing resizability at runtime without recreating the window, on iOS and OS X (even though SDL doesn't yet). Thanks for the info. If you were wondering why I needed this, well I am currently working on SDL2 version of MonoGame, and one of the things it needs is a way of setting window resizable param: https://msdn.microsoft.com/en-us/library/microsoft.xna.framework.gamewindow.allowuserresizing.aspx For now I've just delayed window creation to after the constructor so resizable param can be set in it, tho it can't be changed later on. The patch https://hg.libsdl.org/SDL/rev/ad12658bc7ae fixed this. |