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:
parent
5bc57faf86
commit
2ccba1cf14
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue