| Summary: | resizing a window on a mac via SDL_SetWindowSize isn't guaranteed to give you the requested dimensions, and SDL data gets out of sync (+patch) | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Kyle Rawlins <rawlins> |
| Component: | video | Assignee: | Alex Szpakowski <amaranth72> |
| Status: | WAITING --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.7 | ||
| Hardware: | x86 | ||
| OS: | macOS 10.12 | ||
| Attachments: | patch for mac resize bug | ||
|
Description
Kyle Rawlins
2019-03-30 22:48:04 UTC
Alex, can you check this? Why would we get a size changed message with the wrong size and never get this corrected by the OS resize notifications? I just tried to reproduce this using the latest code from hg, but I wasn't able to. If I call SDL_SetWindowSize on a window that wasn't created with the SDL_WINDOW_RESIZABLE flag, it seems to use my chosen size no matter what. If I call SetWindowSize on a window without that flag, the OS resizes my window to fit in the status bar, SDL_GetWindowSize immediately gives back the updated size, and I also get a resize event which gives the updated size as well. Can you try the most recent possible SDL code or version and see if it still happens for you? If it does still happen, a small bit of code that can reproduce the issue would help as well. I can look at this again and try to create a MWE, but it will take me a few days to get back to it. |