Module: wine Branch: master Commit: fe7df461189e59e0e6d54a83ad3903f1fd93aa01 URL: https://gitlab.winehq.org/wine/wine/-/commit/fe7df461189e59e0e6d54a83ad3903f...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Sep 28 14:44:35 2022 +0200
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.
---
dlls/gdiplus/graphics.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index a9f7a464ce3..fca66c8654b 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -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++) {