| Summary: | SDL_GetWindowFlags() returns incorrect flags for maximized windows | ||
|---|---|---|---|
| Product: | SDL | Reporter: | RetiredSphinx <meh2481> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | Keywords: | target-2.0.4 |
| Version: | 2.0.1 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 7 | ||
| Attachments: | A small program that demonstrates the problem. It creates a window, maximizes it, waits one second, and prints the output of SDL_GetWindowFlags() and IsZomed() | ||
Marking a large number of bugs with the "triage-2.0.4" keyword at once. Sorry if you got a lot of email from this. This is to help me sort through some bugs in regards to a 2.0.4 release. We may or may not fix this bug for 2.0.4, though! (sorry if you get a lot of copies of this email, I'm marking several bugs at once) Marking bugs for the (mostly) final 2.0.4 TODO list. This means we're hoping to resolve this bug before 2.0.4 ships if possible. In a perfect world, the open bug count with the target-2.0.4 keyword is zero when we ship. (Note that closing a bug report as WONTFIX, INVALID or WORKSFORME might still happen.) --ryan. This is fixed in 2.0.4, thanks! |
Created attachment 1481 [details] A small program that demonstrates the problem. It creates a window, maximizes it, waits one second, and prints the output of SDL_GetWindowFlags() and IsZomed() SDL_GetWindowFlags() never returns SDL_WINDOW_MAXIMIZED, even when the window is indeed maximized, either by SDL or by the Windows graphical interface. My simple example program creates a window, maximizes it, shows the window for one second to demonstrate that it is indeed maximized, and outputs the result of SDL_GetWindowFlags() AND'ed with SDL_WINDOW_MAXIMIZED. The output is always 0 on my system, while the Win32 call on the base HWND immediately following always outputs 1.