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

Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Bruno Jesus 2015-11-01 01:22:46 +08:00 committed by Alexandre Julliard
parent 5bc57faf86
commit 2ccba1cf14
1 changed files with 8 additions and 1 deletions

View File

@ -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;