MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / UpdateStatsByWindow

Method UpdateStatsByWindow

Source/VideoProcessor.cpp:62–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void CVideoProcessor::UpdateStatsByWindow()
63{
64 if (m_iResizeStats == 1) {
65 int w = std::max(512, m_windowRect.Width() / 2 - 10) - 5 - 3;
66 int h = std::max(280, m_windowRect.Height() - 10) - 5 - 3;
67 m_StatsFontH = (int)std::ceil(std::min(w / 36.0, h / 19.4));
68 m_StatsFontH &= ~1;
69 if (m_StatsFontH < 14) {
70 m_StatsFontH = 14;
71 }
72 }
73
74 CalcStatsParams(); // always run here to recalculate the graph position
75}
76void CVideoProcessor::UpdateStatsByDisplay()
77{
78 if (m_iResizeStats == 0) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected