[Wine-patches] [eter-2.1 1/2] gdiplus: GdipGetDC doesn't set the alpha channel for a 32-bit dib.

Vitaly Lipatov lav на etersoft.ru
Пт Апр 21 13:09:49 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 mailing list
Wine-patches на lists.etersoft.ru
http://lists.etersoft.ru/mailman/listinfo/wine-patches


Подробная информация о списке рассылки Wine-patches