[Wine-patches] [eter-2.1 1/2] gdiplus: GdipGetDC doesn't set the alpha channel for a 32-bit dib.
Dmitry Timoshkov
dtimoshkov на etersoft.ru
Ср Апр 19 11:19:50 MSK 2017
---
dlls/gdiplus/graphics.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 50580edce6..c9aab2ce15 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -5608,7 +5608,7 @@ GpStatus WINGDIPAPI GdipGetDC(GpGraphics *graphics, HDC *hdc)
{
stat = METAFILE_GetDC((GpMetafile*)graphics->image, hdc);
}
- else if (!graphics->hdc || graphics->alpha_hdc ||
+ else if (!graphics->hdc ||
(graphics->image && graphics->image->type == ImageTypeBitmap && ((GpBitmap*)graphics->image)->format & PixelFormatAlpha))
{
/* Create a fake HDC and fill it with a constant color. */
--
2.12.2
--
Dmitry.
Подробная информация о списке рассылки Wine-patches