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

Method OnPreWindowResize

src/engine/client/text.cpp:2314–2324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2312 }
2313
2314 void OnPreWindowResize() override
2315 {
2316 for(auto *pTextContainer : m_vpTextContainers)
2317 {
2318 if(pTextContainer->m_ContainerIndex.Valid() && pTextContainer->m_ContainerIndex.m_UseCount.use_count() <= 1)
2319 {
2320 log_error("textrender", "Found non empty text container with index %d with %" PRIzu " quads '%s'", pTextContainer->m_StringInfo.m_QuadBufferContainerIndex, pTextContainer->m_StringInfo.m_vCharacterQuads.size(), pTextContainer->m_aDebugText);
2321 dbg_assert_failed("Text container was forgotten by the implementation (the index was overwritten).");
2322 }
2323 }
2324 }
2325
2326 void OnWindowResize() override
2327 {

Callers 1

OnWindowResizeMethod · 0.80

Calls 1

ValidMethod · 0.45

Tested by

no test coverage detected