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

Method CalcGraphParams

Source/VideoProcessor.cpp:118–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void CVideoProcessor::CalcGraphParams()
119{
120 auto CalcGraphRect = [&]() {
121 m_GraphRect.right = m_windowRect.right - 20;
122 m_GraphRect.left = m_GraphRect.right - m_Xstep * m_Syncs.Size();
123
124 m_GraphRect.bottom = m_windowRect.bottom - 20;
125 m_GraphRect.top = m_GraphRect.bottom - 120 * m_Yscale;
126 };
127
128 m_Xstep = 4;
129 m_Yscale = 2;
130 CalcGraphRect();
131
132 if (!CheckGraphPlacement()) {
133 m_Xstep = 2;
134 m_Yscale = 1;
135 CalcGraphRect();
136 }
137
138 m_Yaxis = m_GraphRect.bottom - 50 * m_Yscale;
139}
140
141void CVideoProcessor::SetDisplayInfo(const DisplayConfig_t& dc, const bool primary, const bool exclusiveScreen)
142{

Callers

nothing calls this directly

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected