Nov. 21, 2016
4:10 p.m.
On Sun, Nov 20, 2016 at 03:33:26PM +0900, Akihiro Sagawa wrote:
@@ -212,7 +212,7 @@ HRESULT WINAPI BaseControlVideoImpl_put_SourceLeft(IBasicVideo *iface, LONG Sour hr = This->pFuncsTable->pfnGetSourceRect(This, &SourceRect); if (SUCCEEDED(hr)) { - SourceRect.left = SourceLeft; + OffsetRect(&SourceRect, SourceLeft, 0); hr = BaseControlVideoImpl_CheckSourceRect(This, &SourceRect); } if (SUCCEEDED(hr))
These look wrong to me. The SourceLeft argument is an absolute position, while OffsetRect takes an offset. Check my math, but I think you want something like OffsetRect( SourceLeft - SourceRect.left ). Andrew