mirror of
https://github.com/clsid2/mpc-hc
synced 2026-11-27 18:38:01 +08:00
CSubPicAllocatorPresenterImpl: Properly support non-zero top/left window point.
This commit is contained in:
1 parent
def1c14b77
commit
c3b04477ba
1 file changed
+5
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user