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 5134

Summary: Fullscreen window not working
Product: SDL Reporter: ImAnonym <sdlbugz>
Component: videoAssignee: Sam Lantinga <slouken>
Status: ASSIGNED --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 Keywords: target-2.0.16
Version: 2.0.12   
Hardware: x86   
OS: Windows 10   

Description ImAnonym 2020-05-13 13:44:17 UTC
I have recently updated SDL to the version 2.0.12, but then fullscreen windows aren't working anymore.

This simple example fails:

#include <SDL2/SDL.h>

int main(int main, char* argv[])
{
    int quit = 0;
    SDL_Event event;
    SDL_Window* window;
    SDL_Init(SDL_INIT_EVERYTHING);

    window = SDL_CreateWindow("fullscreen",0,0,640,480,SDL_WINDOW_SHOWN | SDL_WINDOW_FULLSCREEN);
    while(!quit)
    {
        while(SDL_PollEvent(&event))
        {
            if(event.type == SDL_QUIT){
                quit = 1;
            }
        }

        SDL_UpdateWindowSurface(window);
    }
    return 0;
}

To be sure that it's a version problem i've tested the same code with an older version and it worked, all tests were done in Windows.

Can someone tell me if i'm doing something wrong? Or is it really a bug?
Comment 1 Sam Lantinga 2020-05-13 15:44:18 UTC
I'll take a look, thanks!