| Summary: | SDL_CreateWindow() width defaults to 120 when creating smaller windows on Windows platform. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Dan Lawrence <danintheshed> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | NEW --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | trivial | ||
| Priority: | P2 | ||
| Version: | 2.0.12 | ||
| Hardware: | x86 | ||
| OS: | Windows 10 | ||
Reported on the pygame issue tracker originally where husano896 kindly provided a C code reproduction: window = SDL_CreateWindow("Test", 0, 0, 20, 20, 0); int check_w, check_h; SDL_GetWindowSize(window, &check_w, &check_h); //Shows 120,20 std::cout << check_w << "," << check_h; Apparently windows can be made smaller than this since a second call to set_mode in pygame will correctly set the size of the window. See the original issue here: https://github.com/pygame/pygame/issues/993 Cheers, Dan