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

Method ResizeToScreen

src/engine/client/graphics_threaded.cpp:2629–2638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2627}
2628
2629void CGraphics_Threaded::ResizeToScreen()
2630{
2631 if(Resize(g_Config.m_GfxScreenWidth, g_Config.m_GfxScreenHeight, g_Config.m_GfxScreenRefreshRate))
2632 return;
2633
2634 // Revert config variables if the change was not accepted
2635 g_Config.m_GfxScreenWidth = ScreenWidth();
2636 g_Config.m_GfxScreenHeight = ScreenHeight();
2637 g_Config.m_GfxScreenRefreshRate = m_ScreenRefreshRate;
2638}
2639
2640void CGraphics_Threaded::GotResized(int w, int h, int RefreshRate)
2641{

Callers 2

ConchainWindowResizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected