MCPcopy Create free account
hub / github.com/ddnet/ddnet / ConchainWindowBordered

Method ConchainWindowBordered

src/engine/client/client.cpp:4340–4350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4338}
4339
4340void CClient::ConchainWindowBordered(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
4341{
4342 CClient *pSelf = (CClient *)pUserData;
4343 if(pSelf->Graphics() && pResult->NumArguments())
4344 {
4345 if(!g_Config.m_GfxFullscreen && (g_Config.m_GfxBorderless != pResult->GetInteger(0)))
4346 pSelf->Graphics()->SetWindowParams(g_Config.m_GfxFullscreen, !g_Config.m_GfxBorderless);
4347 }
4348 else
4349 pfnCallback(pResult, pCallbackUserData);
4350}
4351
4352void CClient::Notify(const char *pTitle, const char *pMessage)
4353{

Callers

nothing calls this directly

Calls 4

NumArgumentsMethod · 0.80
GraphicsMethod · 0.45
GetIntegerMethod · 0.45
SetWindowParamsMethod · 0.45

Tested by

no test coverage detected