Changeset 91c89f7 in opengl-game for game-gui-sdl.cpp


Ignore:
Timestamp:
Sep 25, 2019, 12:20:59 AM (5 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
054d9ed
Parents:
502bd0b
Message:

Use SDL_WINDOW_FULLSCREEN_DESKTOP when creating the SDL window to enable going fullscreen in Windows without crashing when SDL_DestroyWindow is called

File:
1 edited

Legend:

Unmodified
Added
Removed
  • game-gui-sdl.cpp

    r502bd0b r91c89f7  
    5656   }
    5757
    58    uint32_t flags = SDL_WINDOW_VULKAN | (fullscreen ? SDL_WINDOW_FULLSCREEN : SDL_WINDOW_RESIZABLE);
     58   uint32_t flags = SDL_WINDOW_VULKAN | SDL_WINDOW_SHOWN | (fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : SDL_WINDOW_RESIZABLE);
    5959
    6060   window = SDL_CreateWindow(title.c_str(),
Note: See TracChangeset for help on using the changeset viewer.