CSubPicAllocatorPresenterImpl: Properly support non-zero top/left window point.

This commit is contained in:
Kacper Michajłow committed 2015-10-04 19:08:43 +02:00
1 parent def1c14b77
commit c3b04477ba
1 file changed
+5 -2
+5 -2
View File
@@ -168,9 +168,12 @@ STDMETHODIMP_(void) CSubPicAllocatorPresenterImpl::SetPosition(RECT w, RECT v)
m_windowRect = w;
bool bVideoRectChanged = !!(m_videoRect != v);
CRect videoRect(v);
videoRect.OffsetRect(-m_windowRect.TopLeft());
m_videoRect = v;
bool bVideoRectChanged = !!(m_videoRect != videoRect);
m_videoRect = videoRect;
if (bWindowSizeChanged || bVideoRectChanged) {
if (m_pAllocator) {