Bruno Jesus : msvfw32: Derive frame dimension from bitmap info when not available.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Nov 2 09:47:14 CST 2015
Module: wine
Branch: master
Commit: 2ccba1cf14aaab5cd2bb3585429450300e70e941
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2ccba1cf14aaab5cd2bb3585429450300e70e941
Author: Bruno Jesus <00cpxxx at gmail.com>
Date: Sun Nov 1 01:22:46 2015 +0800
msvfw32: Derive frame dimension from bitmap info when not available.
Signed-off-by: Bruno Jesus <00cpxxx at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/msvfw32/drawdib.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dlls/msvfw32/drawdib.c b/dlls/msvfw32/drawdib.c
index a6af90f..e96b0f2 100644
--- a/dlls/msvfw32/drawdib.c
+++ b/dlls/msvfw32/drawdib.c
@@ -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;
More information about the wine-cvs
mailing list