Commit 2ccba1cf authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

msvfw32: Derive frame dimension from bitmap info when not available.

parent 5bc57faf
......@@ -347,7 +347,14 @@ BOOL VFWAPI DrawDibDraw(HDRAWDIB hdd, HDC hdc,
#undef CHANGED
if ((dxDst == -1) && (dyDst == -1))
/* If source dimensions are not specified derive them from bitmap header */
if (dxSrc == -1 && dySrc == -1)
{
dxSrc = lpbi->biWidth;
dySrc = lpbi->biHeight;
}
/* If destination dimensions are not specified derive them from source */
if (dxDst == -1 && dyDst == -1)
{
dxDst = dxSrc;
dyDst = dySrc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment