mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-25 10:10:32 +01:00
SDL: Use SDL_WINDOW_FULLSCREEN_DESKTOP and allow to maximize+fullscreen at once (#156)
This commit is contained in:
parent
cd3e784534
commit
5527b9f373
@ -234,13 +234,17 @@ CIrrDeviceSDL::CIrrDeviceSDL(const SIrrlichtCreationParameters& param)
|
|||||||
createKeyMap();
|
createKeyMap();
|
||||||
|
|
||||||
if (CreationParams.Fullscreen) {
|
if (CreationParams.Fullscreen) {
|
||||||
|
#ifdef _IRR_EMSCRIPTEN_PLATFORM_
|
||||||
SDL_Flags |= SDL_WINDOW_FULLSCREEN;
|
SDL_Flags |= SDL_WINDOW_FULLSCREEN;
|
||||||
} else {
|
#else
|
||||||
|
SDL_Flags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
if (Resizable)
|
if (Resizable)
|
||||||
SDL_Flags |= SDL_WINDOW_RESIZABLE;
|
SDL_Flags |= SDL_WINDOW_RESIZABLE;
|
||||||
if (CreationParams.WindowMaximized)
|
if (CreationParams.WindowMaximized)
|
||||||
SDL_Flags |= SDL_WINDOW_MAXIMIZED;
|
SDL_Flags |= SDL_WINDOW_MAXIMIZED;
|
||||||
}
|
|
||||||
if (CreationParams.DriverType == video::EDT_OPENGL)
|
if (CreationParams.DriverType == video::EDT_OPENGL)
|
||||||
{
|
{
|
||||||
SDL_Flags |= SDL_WINDOW_OPENGL;
|
SDL_Flags |= SDL_WINDOW_OPENGL;
|
||||||
|
Loading…
Reference in New Issue
Block a user