diff options
Diffstat (limited to 'vcl/source/gdi/FileDefinitionWidgetDraw.cxx')
-rw-r--r-- | vcl/source/gdi/FileDefinitionWidgetDraw.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx index 37f5396a6164..f90e992963cc 100644 --- a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx +++ b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx @@ -327,7 +327,8 @@ void drawFromDrawCommands(gfx::DrawRoot const& rDrawRoot, SalGraphics& rGraphics for (gfx::GradientStop const& rStop : pLinearGradient->maGradientStops) { Color aColor(rStop.maColor); - aColor.SetTransparency(rStop.mfOpacity * (1.0f - rRectangle.mnOpacity)); + aColor.SetAlpha(255 + - (rStop.mfOpacity * (1.0f - rRectangle.mnOpacity))); aGradient.maStops.emplace_back(aColor, rStop.mfOffset); } FileDefinitionWidgetDraw::implDrawGradient( |