added workaround to make switching screen work in fullscreen

This commit is contained in:
oy 2015-10-22 19:56:10 +02:00
parent 0b29a42e2b
commit dd98fd86eb

View file

@ -2210,8 +2210,19 @@ void CClient::ConchainServerBrowserUpdate(IConsole::IResult *pResult, void *pUse
void CClient::SwitchWindowScreen(int Index) void CClient::SwitchWindowScreen(int Index)
{ {
if(Graphics()->SetWindowScreen(Index)) // Todo: remove this if fixed by SDL
g_Config.m_GfxScreen = Index; 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) void CClient::ConchainWindowScreen(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)