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 - Fullscreen window not working
Summary: Fullscreen window not working
Status: ASSIGNED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.12
Hardware: x86 Windows 10
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.16
Depends on:
Blocks:
 
Reported: 2020-05-13 13:44 UTC by ImAnonym
Modified: 2020-07-16 18:29 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!