| 283 | } |
| 284 | |
| 285 | void 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 | |
| 302 | void CSampleEditorView::ExpandSample(const ft0cc::doc::dpcm_sample &Sample, int Start) // // // |
| 303 | { |