diff options
Diffstat (limited to 'vcl/headless/svpgdi.cxx')
-rw-r--r-- | vcl/headless/svpgdi.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx index 825da3e5f415..4bbd6f76ec5c 100644 --- a/vcl/headless/svpgdi.cxx +++ b/vcl/headless/svpgdi.cxx @@ -2009,7 +2009,7 @@ bool SvpSalGraphics::implDrawGradient(basegfx::B2DPolyPolygon const & rPolyPolyg double r = rStop.maColor.GetRed() / 255.0; double g = rStop.maColor.GetGreen() / 255.0; double b = rStop.maColor.GetBlue() / 255.0; - double a = (0xFF - rStop.maColor.GetTransparency()) / 255.0; + double a = rStop.maColor.GetAlpha() / 255.0; double offset = rStop.mfOffset; cairo_pattern_add_color_stop_rgba(pattern, offset, r, g, b, a); |