Skip to content

Commit

Permalink
Platform: nobody's ever going to use ~Configuration::WindowFlags{}.
Browse files Browse the repository at this point in the history
So don't bother building the correct mask of it.
  • Loading branch information
mosra committed Feb 5, 2024
1 parent 17dd7bb commit 6394c85
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/Magnum/Platform/Sdl2Application.h
Original file line number Diff line number Diff line change
Expand Up @@ -1761,20 +1761,7 @@ class Sdl2Application::Configuration {
*
* @see @ref setWindowFlags()
*/
#ifndef DOXYGEN_GENERATING_OUTPUT
typedef Containers::EnumSet<WindowFlag, SDL_WINDOW_RESIZABLE|
#ifndef CORRADE_TARGET_EMSCRIPTEN
SDL_WINDOW_FULLSCREEN|SDL_WINDOW_BORDERLESS|SDL_WINDOW_HIDDEN|
SDL_WINDOW_MAXIMIZED|SDL_WINDOW_MINIMIZED|SDL_WINDOW_INPUT_GRABBED|
#endif
Uint32(WindowFlag::Contextless)|SDL_WINDOW_OPENGL
#if !defined(CORRADE_TARGET_EMSCRIPTEN) && SDL_MAJOR_VERSION*1000 + SDL_MINOR_VERSION*100 + SDL_PATCHLEVEL >= 2006
|SDL_WINDOW_VULKAN
#endif
> WindowFlags;
#else
typedef Containers::EnumSet<WindowFlag> WindowFlags;
#endif

/**
* @brief DPI scaling policy
Expand Down

0 comments on commit 6394c85

Please sign in to comment.