Commit 99a17198 authored by Damjan Jovanovic's avatar Damjan Jovanovic Committed by Alexandre Julliard

gdiplus: In CompositingModeSourceCopy, fully transparent pixels are drawn black.

parent b21881f5
......@@ -384,7 +384,12 @@ static GpStatus alpha_blend_bmp_pixels(GpGraphics *graphics, INT dst_x, INT dst_
src_color = ((ARGB*)(src + src_stride * y))[x];
if (comp_mode == CompositingModeSourceCopy)
GdipBitmapSetPixel(dst_bitmap, x+dst_x, y+dst_y, src_color);
{
if (!(src_color & 0xff000000))
GdipBitmapSetPixel(dst_bitmap, x+dst_x, y+dst_y, 0);
else
GdipBitmapSetPixel(dst_bitmap, x+dst_x, y+dst_y, src_color);
}
else
{
if (!(src_color & 0xff000000))
......
......@@ -4491,7 +4491,7 @@ static void test_DrawImage_SourceCopy(void)
expect(0, dst_pixels[0]);
expect(0xffff0000, dst_pixels[1]);
expect(0, dst_pixels[2]);
todo_wine expect(0, dst_pixels[3]);
expect(0, dst_pixels[3]);
status = GdipDeleteGraphics(graphics);
expect(Ok, status);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment