Commit fe7df461 authored by Alexandre Julliard's avatar Alexandre Julliard

gdiplus: Get the compositing mode directly from the graphics object.

GdipGetCompositingMode() fails when the object is busy, which happens when flushing changes in GdipReleaseDC(). Fixes a test crash on Gitlab CI.
parent 967c39fa
......@@ -418,9 +418,7 @@ static GpStatus alpha_blend_bmp_pixels(GpGraphics *graphics, INT dst_x, INT dst_
{
GpBitmap *dst_bitmap = (GpBitmap*)graphics->image;
INT x, y;
CompositingMode comp_mode;
GdipGetCompositingMode(graphics, &comp_mode);
CompositingMode comp_mode = graphics->compmode;
for (y=0; y<src_height; y++)
{
......
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