diff options
| author | heinrich5991 <heinrich5991@gmail.com> | 2012-06-27 11:46:11 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2013-02-24 17:38:19 +0100 |
| commit | 7b545f3ed941d45c3a42016b9de667a08f8d4dc6 (patch) | |
| tree | a7e6c86753d4daa7c81e041b8480a0ff5b7f53de /src/engine/client/graphics.cpp | |
| parent | 56ae76f46574506fa2b28fbf2fdf5672ae5866c6 (diff) | |
| download | zcatch-7b545f3ed941d45c3a42016b9de667a08f8d4dc6.tar.gz zcatch-7b545f3ed941d45c3a42016b9de667a08f8d4dc6.zip | |
Added borderless window functionality
This might become handy for users with multiple monitors, might resolve other issues aswell
Diffstat (limited to 'src/engine/client/graphics.cpp')
| -rw-r--r-- | src/engine/client/graphics.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/engine/client/graphics.cpp b/src/engine/client/graphics.cpp index 8816e1ed..314669e2 100644 --- a/src/engine/client/graphics.cpp +++ b/src/engine/client/graphics.cpp @@ -801,7 +801,15 @@ int CGraphics_SDL::TryInit() if(pInfo->blit_hw) // ignore_convention Flags |= SDL_HWACCEL; - if(g_Config.m_GfxFullscreen) + if(g_Config.m_GfxBorderless && g_Config.m_GfxFullscreen) + { + dbg_msg("gfx", "both borderless and fullscreen activated, disabling borderless"); + g_Config.m_GfxBorderless = 0; + } + + if(g_Config.m_GfxBorderless) + Flags |= SDL_NOFRAME; + else if(g_Config.m_GfxFullscreen) Flags |= SDL_FULLSCREEN; // set gl attributes |