| 60 | } |
| 61 | |
| 62 | void 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 | } |
| 76 | void CVideoProcessor::UpdateStatsByDisplay() |
| 77 | { |
| 78 | if (m_iResizeStats == 0) { |
nothing calls this directly
no outgoing calls
no test coverage detected