SDL icon indicating copy to clipboard operation
SDL copied to clipboard

SDL_WINDOW_HIDDEN. BUG

Open baidwwy opened this issue 2 years ago • 1 comments

+SDL_SetHint(SDL_HINT_ORIENTATIONS, "LandscapeLeft LandscapeRight");
+window = SDL_CreateWindow(NULL, 0, 0, 320, 480, SDL_WINDOW_FULLSCREEN | SDL_WINDOW_ALLOW_HIGHDPI|SDL_WINDOW_HIDDEN);
-window = SDL_CreateWindow(NULL, 0, 0, 320, 480, SDL_WINDOW_FULLSCREEN | SDL_WINDOW_ALLOW_HIGHDPI);

    renderer = SDL_CreateRenderer(window, -1, 0);

    SDL_GetWindowSize(window, &width, &height);
    SDL_RenderSetLogicalSize(renderer, width, height);
+SDL_ShowWindow(window);

SDL2 2.26.5

Missing display Simulator Screen Shot - iPhone SE (3rd generation) - 2023-06-01 at 21 01 27

baidwwy avatar Jun 01 '23 13:06 baidwwy

iOS

baidwwy avatar Jun 01 '23 13:06 baidwwy

I'm not sure what the bug is here? Can you provide more explanation?

slouken avatar Nov 08 '23 05:11 slouken

"If SDL_WINDOW_HIDDEN is used when creating and then SDL_ShowWindow is used, the screen will not be fully displayed."

baidwwy avatar Nov 08 '23 12:11 baidwwy

"Please look at the smiley face in the screenshot, it is missing in the lower area."

baidwwy avatar Nov 08 '23 12:11 baidwwy

This has been fixed for the 2.23.0 release, thanks!

slouken avatar Jan 06 '24 15:01 slouken