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

Method Move

src/engine/client/graphics_threaded.cpp:2590–2606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2588}
2589
2590void CGraphics_Threaded::Move(int x, int y)
2591{
2592#if defined(CONF_VIDEORECORDER)
2593 if(IVideo::Current() && IVideo::Current()->IsRecording())
2594 return;
2595#endif
2596
2597 // Only handling CurScreen != m_GfxScreen doesn't work reliably
2598 const int CurScreen = m_pBackend->GetWindowScreen();
2599 m_pBackend->UpdateDisplayMode(CurScreen);
2600
2601 // send a got resized event so that the current canvas size is requested
2602 GotResized(g_Config.m_GfxScreenWidth, g_Config.m_GfxScreenHeight, g_Config.m_GfxScreenRefreshRate);
2603
2604 for(auto &PropChangedListener : m_vPropChangeListeners)
2605 PropChangedListener();
2606}
2607
2608bool CGraphics_Threaded::Resize(int w, int h, int RefreshRate)
2609{

Callers 1

UpdateMethod · 0.45

Calls 3

UpdateDisplayModeMethod · 0.80
IsRecordingMethod · 0.45
GetWindowScreenMethod · 0.45

Tested by

no test coverage detected