"windowscodecs: Don't overwrite bih.bV5AlphaMask and set the LCS_DEVICE_RGB flag in bih.bV5CSType"
Víctor Martinez
vmartinez at reactos.org
Wed Apr 3 19:10:59 CDT 2013
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130404/5d67ef8f/attachment.html>
-------------- next part --------------
From 3f931f6e50ffa3bf6f967824e311c3538e93b45b Mon Sep 17 00:00:00 2001
From: Victor Martinez Calvo <vmartinez at reactos.org>
Date: Thu, 4 Apr 2013 02:07:36 +0200
Subject: windowscodecs: Don't overwrite bih.bV5AlphaMask and set the
LCS_DEVICE_RGB flag in bih.bV5CSType
---
dlls/windowscodecs/bmpencode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/windowscodecs/bmpencode.c b/dlls/windowscodecs/bmpencode.c
index 9bd2340..b071c80 100644
--- a/dlls/windowscodecs/bmpencode.c
+++ b/dlls/windowscodecs/bmpencode.c
@@ -360,7 +360,7 @@ static HRESULT WINAPI BmpFrameEncode_Commit(IWICBitmapFrameEncode *iface)
bih.bV5GreenMask = This->format->greenmask;
bih.bV5BlueMask = This->format->bluemask;
bih.bV5AlphaMask = This->format->alphamask;
- bih.bV5AlphaMask = LCS_DEVICE_RGB;
+ bih.bV5CSType = LCS_DEVICE_RGB;
}
bfh.bfSize = sizeof(BITMAPFILEHEADER) + info_size + bih.bV5SizeImage;
--
1.8.1.msysgit.1
More information about the wine-patches
mailing list