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

Method ConchainWindowScreen

src/engine/client/client.cpp:4316–4326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4314}
4315
4316void CClient::ConchainWindowScreen(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
4317{
4318 CClient *pSelf = (CClient *)pUserData;
4319 if(pSelf->Graphics() && pResult->NumArguments())
4320 {
4321 if(g_Config.m_GfxScreen != pResult->GetInteger(0))
4322 pSelf->Graphics()->SwitchWindowScreen(pResult->GetInteger(0), true);
4323 }
4324 else
4325 pfnCallback(pResult, pCallbackUserData);
4326}
4327
4328void CClient::ConchainFullscreen(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
4329{

Callers

nothing calls this directly

Calls 4

NumArgumentsMethod · 0.80
SwitchWindowScreenMethod · 0.80
GraphicsMethod · 0.45
GetIntegerMethod · 0.45

Tested by

no test coverage detected