diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-05 12:32:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-06 11:34:20 +0000 |
commit | 89b1d41e0d2cd16a4088e095de0f673807c4adac (patch) | |
tree | 0f5902636b16a48e976d07290df6f182fbff1c76 /vcl/skia/osx | |
parent | 337416dafb66ed8f930d2d69e83fae438fc85f3c (diff) |
use std::optional for SALCOLOR_NONE
instead of re-using an actual real color value, because it will totally
not work when I convert vcl to use alpha instead of transparency
Change-Id: I01f043e0b65ffd852989dfe28f2b9d5a43c9c3d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145075
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/skia/osx')
-rw-r--r-- | vcl/skia/osx/gdiimpl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/skia/osx/gdiimpl.cxx b/vcl/skia/osx/gdiimpl.cxx index 1c1b7d2955c3..17a02fd441cf 100644 --- a/vcl/skia/osx/gdiimpl.cxx +++ b/vcl/skia/osx/gdiimpl.cxx @@ -239,10 +239,10 @@ bool AquaSkiaSalGraphicsImpl::drawNativeControl(ControlType nType, ControlPart n // Setup context state for drawing (performDrawNativeControl() e.g. fills background in some cases). CGContextSetFillColorSpace(context, GetSalData()->mxRGBSpace); CGContextSetStrokeColorSpace(context, GetSalData()->mxRGBSpace); - RGBAColor lineColor(mLineColor); + RGBAColor lineColor(*moLineColor); CGContextSetRGBStrokeColor(context, lineColor.GetRed(), lineColor.GetGreen(), lineColor.GetBlue(), lineColor.GetAlpha()); - RGBAColor fillColor(mFillColor); + RGBAColor fillColor(*moFillColor); CGContextSetRGBFillColor(context, fillColor.GetRed(), fillColor.GetGreen(), fillColor.GetBlue(), fillColor.GetAlpha()); // Adjust for our drawn-to coordinates in the bitmap. |