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

Method OnDialogClose

src/game/editor/file_browser.cpp:478–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478void CFileBrowser::OnDialogClose()
479{
480 m_PreviewState = EPreviewState::UNLOADED;
481 Graphics()->UnloadTexture(&m_PreviewImage);
482 m_PreviewImageWidth = -1;
483 m_PreviewImageHeight = -1;
484 Sound()->UnloadSample(m_PreviewSound);
485 m_PreviewSound = -1;
486}
487
488bool CFileBrowser::CanPreviewFile() const
489{

Callers 1

OnRenderMethod · 0.45

Calls 4

GraphicsFunction · 0.85
UnloadTextureMethod · 0.80
UnloadSampleMethod · 0.80
SoundFunction · 0.70

Tested by

no test coverage detected