| Summary: | Window size limit calculation issue when exiting fullscreen on Windows | ||
|---|---|---|---|
| Product: | SDL | Reporter: | norfanin |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | amaranth72, buckyballreaction |
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | Windows (All) | ||
| Attachments: | Small testcase that shows a resize issue when exiting fullscreen. | ||
|
Description
norfanin
2013-08-28 10:32:11 UTC
Hey, attaching the file worked! :) This happens on OSX as well; but strangely, not in Linux. Also see bug #1962 that I opened on this issue earlier. It doesn't happen in OS X. I just confirm similar behavior on OSX 10.6 (with SDL 2.0.0): exiting fullscreen will send a resize command to make the window the maximum dimensions on the desktop it can be (with the window decorations), even if the previous window size was really small. Perhaps the code path is different, but the effect is the same. There were several OS X-specific bugs related to switching out of fullscreen fixed already for 2.0.1. Can you test with that please? :) just verified in rev. cee8a400dc51 on OSX 10.6. Same behavior. However my application needs to respond to external window size changes (e.g. being resized by the user). I'll continue my responses in my bug as it might be different than this, even though behavior is similar (and this Windows-only). buckyballreaction: I cannot reproduce this myself on either Mac OS 10.8 or Mac OS 10.6. It works fine for me. Are you using the code attached in this issue report to test? Fixed, thanks! https://hg.libsdl.org/SDL/rev/7c249ca44069 |