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

Method SetDestinationPosition

Source/VideoRenderer.cpp:883–903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

881}
882
883STDMETHODIMP CMpcVideoRenderer::SetDestinationPosition(long Left, long Top, long Width, long Height)
884{
885 const CRect videoRect(Left, Top, Left + Width, Top + Height);
886 if (videoRect.IsRectNull()) {
887 return S_OK;
888 }
889
890 if (videoRect != m_videoRect) {
891 m_videoRect = videoRect;
892
893 CAutoLock cRendererLock(&m_RendererLock);
894
895 m_VideoProcessor->SetVideoRect(videoRect);
896 }
897
898 if (m_bForceRedrawing) {
899 Redraw();
900 }
901
902 return S_OK;
903}
904
905STDMETHODIMP CMpcVideoRenderer::GetDestinationPosition(long *pLeft, long *pTop, long *pWidth, long *pHeight)
906{

Callers

nothing calls this directly

Calls 1

SetVideoRectMethod · 0.45

Tested by

no test coverage detected