We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5144

Summary: SDL_CreateWindow() width defaults to 120 when creating smaller windows on Windows platform.
Product: SDL Reporter: Dan Lawrence <danintheshed>
Component: videoAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: trivial    
Priority: P2    
Version: 2.0.12   
Hardware: x86   
OS: Windows 10   

Description Dan Lawrence 2020-05-17 16:11:46 UTC
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