mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
added workaround to make switching screen work in fullscreen
This commit is contained in:
parent
0b29a42e2b
commit
dd98fd86eb
|
@ -2210,8 +2210,19 @@ void CClient::ConchainServerBrowserUpdate(IConsole::IResult *pResult, void *pUse
|
|||
|
||||
void CClient::SwitchWindowScreen(int Index)
|
||||
{
|
||||
if(Graphics()->SetWindowScreen(Index))
|
||||
g_Config.m_GfxScreen = Index;
|
||||
// Todo: remove this if fixed by SDL
|
||||
if(g_Config.m_GfxFullscreen)
|
||||
{
|
||||
ToggleFullscreen();
|
||||
if(Graphics()->SetWindowScreen(Index))
|
||||
g_Config.m_GfxScreen = Index;
|
||||
ToggleFullscreen();
|
||||
}
|
||||
else
|
||||
{
|
||||
if(Graphics()->SetWindowScreen(Index))
|
||||
g_Config.m_GfxScreen = Index;
|
||||
}
|
||||
}
|
||||
|
||||
void CClient::ConchainWindowScreen(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
|
||||
|
|
Loading…
Reference in a new issue