aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
authorMat Berchtold <unknown>2023-03-27 12:21:59 +1100
committerMat Berchtold <unknown>2023-03-27 12:21:59 +1100
commitd22a78b69f9dd04ce99e2959f0a11b449f20e174 (patch)
tree3a8f927cc8b57ff05a5bf83ecbb061d5d2ebb088 /win32/PlatWin.cxx
parent624f7c4c5d56bb5ef13fe59ceaa985c56e4a424a (diff)
downloadscintilla-mirror-d22a78b69f9dd04ce99e2959f0a11b449f20e174.tar.gz
Bug [#1923]. Remove dependence on MSIMG32.DLL on Win32 by replacing AlphaBlend
by GdiAlphaBlend.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r--win32/PlatWin.cxx6
1 files changed, 3 insertions, 3 deletions
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<ColourStop>
}
}
- 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<size_t>(width) * height);
- AlphaBlend(hdc, static_cast<int>(rc.left), static_cast<int>(rc.top),
+ GdiAlphaBlend(hdc, static_cast<int>(rc.left), static_cast<int>(rc.top),
static_cast<int>(rc.Width()), static_cast<int>(rc.Height()), section.DC(),
0, 0, width, height, mergeAlpha);
}