| Summary: | SDL_SetWindowResizable | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Intellectual Kitty <IntellectualKitty> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED DUPLICATE | QA Contact: | Sam Lantinga <slouken> |
| Severity: | enhancement | ||
| Priority: | P2 | CC: | amaranth72, flibitijibibo, philipp.wiesemann |
| Version: | 2.0.4 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | SDL_SetWindowResizable | ||
|
Description
Intellectual Kitty
2016-05-09 07:36:16 UTC
In your specific example at least, creating the window with the resizable flag set initially should do the trick - it will still go fullscreen when you want, and it will be resizable when in windowed mode. (Also note that for going fullscreen you should ideally use the SDL_WINDOW_FULLSCREEN_DESKTOP or SDL_WINDOW_FULLSCREEN flags with either SDL_CreateWindow or SDL_SetWindowFullscreen, rather than setting the window's borderless status.) Thank you clarifying these points. Created attachment 2456 [details]
SDL_SetWindowResizable
I wrote a patch for this a while ago and sent it to Ryan/Sam for review, but I didn't hear back... feel free to try this out.
|