From d22a78b69f9dd04ce99e2959f0a11b449f20e174 Mon Sep 17 00:00:00 2001 From: Mat Berchtold Date: Mon, 27 Mar 2023 12:21:59 +1100 Subject: Bug [#1923]. Remove dependence on MSIMG32.DLL on Win32 by replacing AlphaBlend by GdiAlphaBlend. --- win32/PlatWin.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'win32/PlatWin.cxx') diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index dbb929620..7fd6eea36 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -963,7 +963,7 @@ void SurfaceGDI::AlphaRectangle(PRectangle rc, XYPOSITION cornerSize, FillStroke section.SetSymmetric(x, corner - x, valOutline); } - AlphaBlend(hdc, rcw.left, rcw.top, size.cx, size.cy, section.DC(), 0, 0, size.cx, size.cy, mergeAlpha); + GdiAlphaBlend(hdc, rcw.left, rcw.top, size.cx, size.cy, section.DC(), 0, 0, size.cx, size.cy, mergeAlpha); } } else { BrushColour(fillStroke.stroke.colour); @@ -1002,7 +1002,7 @@ void SurfaceGDI::GradientRectangle(PRectangle rc, const std::vector } } - AlphaBlend(hdc, rcw.left, rcw.top, size.cx, size.cy, section.DC(), 0, 0, size.cx, size.cy, mergeAlpha); + GdiAlphaBlend(hdc, rcw.left, rcw.top, size.cx, size.cy, section.DC(), 0, 0, size.cx, size.cy, mergeAlpha); } } @@ -1019,7 +1019,7 @@ void SurfaceGDI::DrawRGBAImage(PRectangle rc, int width, int height, const unsig DIBSection section(hdc, size); if (section) { RGBAImage::BGRAFromRGBA(section.Bytes(), pixelsImage, static_cast(width) * height); - AlphaBlend(hdc, static_cast(rc.left), static_cast(rc.top), + GdiAlphaBlend(hdc, static_cast(rc.left), static_cast(rc.top), static_cast(rc.Width()), static_cast(rc.Height()), section.DC(), 0, 0, width, height, mergeAlpha); } -- cgit v1.2.3