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

Method DrawStartCursor

Source/SampleEditorView.cpp:285–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285void CSampleEditorView::DrawStartCursor()
286{
287 CDC *pDC = GetDC();
288 int x = int((double(m_iStartCursor) * 8.0 * 64.0 - m_iViewStart) / m_dSampleStep);
289
290 pDC->BitBlt(0, 0, m_clientRect.Width(), m_clientRect.Height(), &m_dcCopy, 0, 0, SRCCOPY);
291
292 if (m_iStartCursor != -1) {
293 CPen *oldPen = pDC->SelectObject(&m_cDashedPen);
294 pDC->MoveTo(x, 0);
295 pDC->LineTo(x, m_clientRect.bottom);
296 pDC->SelectObject(oldPen);
297 }
298
299 ReleaseDC(pDC);
300}
301
302void CSampleEditorView::ExpandSample(const ft0cc::doc::dpcm_sample &Sample, int Start) // // //
303{

Callers 1

OnTimerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected