Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
SDL: Use SDL_WINDOW_FULLSCREEN_DESKTOP and allow to maximize+fullscre…
Browse files Browse the repository at this point in the history
…en at once (#156)
  • Loading branch information
Desour authored Feb 20, 2023
1 parent cd3e784 commit 5527b9f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions source/Irrlicht/CIrrDeviceSDL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,17 @@ CIrrDeviceSDL::CIrrDeviceSDL(const SIrrlichtCreationParameters& param)
createKeyMap();

if (CreationParams.Fullscreen) {
#ifdef _IRR_EMSCRIPTEN_PLATFORM_
SDL_Flags |= SDL_WINDOW_FULLSCREEN;
} else {
if (Resizable)
SDL_Flags |= SDL_WINDOW_RESIZABLE;
if (CreationParams.WindowMaximized)
SDL_Flags |= SDL_WINDOW_MAXIMIZED;
#else
SDL_Flags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
#endif
}
if (Resizable)
SDL_Flags |= SDL_WINDOW_RESIZABLE;
if (CreationParams.WindowMaximized)
SDL_Flags |= SDL_WINDOW_MAXIMIZED;

if (CreationParams.DriverType == video::EDT_OPENGL)
{
SDL_Flags |= SDL_WINDOW_OPENGL;
Expand Down

0 comments on commit 5527b9f

Please sign in to comment.