MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / DrawPlayCursor

Method DrawPlayCursor

Source/SampleEditorView.cpp:268–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268void CSampleEditorView::DrawPlayCursor(int Pos)
269{
270 CDC *pDC = GetDC();
271 int x = int((double(Pos + m_iStartCursor) * 8.0 * 64.0 - m_iViewStart) / m_dSampleStep);
272
273 pDC->BitBlt(0, 0, m_clientRect.Width(), m_clientRect.Height(), &m_dcCopy, 0, 0, SRCCOPY);
274
275 if (Pos != -1) {
276 CPen *oldPen = pDC->SelectObject(&m_cDashedPen);
277 pDC->MoveTo(x, 0);
278 pDC->LineTo(x, m_clientRect.bottom);
279 pDC->SelectObject(oldPen);
280 }
281
282 ReleaseDC(pDC);
283}
284
285void CSampleEditorView::DrawStartCursor()
286{

Callers 1

OnTimerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected