diff options
author | Lei Zhang <thestig@chromium.org> | 2018-03-21 04:36:35 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-03-21 04:36:35 +0000 |
commit | 765d1ebe41defa659a703a2f0ff5284c0da96a95 (patch) | |
tree | adaec2bce49268f18cd51ee05120d6a05dc74b3a /xfa/fxfa | |
parent | da89ac4c49013ce8d2d1d81e389cd37c0ee2ef27 (diff) | |
download | pdfium-765d1ebe41defa659a703a2f0ff5284c0da96a95.tar.xz |
Rename one ArgbEncode() variant to AlphaAndColorRefToArgb().
Mark the other ArgbEncode() variant as constexpr.
Change-Id: I84207d805766e5efc669638bd8a15cfead356a41
Reviewed-on: https://pdfium-review.googlesource.com/28577
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa')
-rw-r--r-- | xfa/fxfa/parser/cxfa_stipple.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/parser/cxfa_stipple.cpp b/xfa/fxfa/parser/cxfa_stipple.cpp index 2c36e11353..19ca0ca403 100644 --- a/xfa/fxfa/parser/cxfa_stipple.cpp +++ b/xfa/fxfa/parser/cxfa_stipple.cpp @@ -64,7 +64,7 @@ void CXFA_Stipple::Draw(CXFA_Graphics* pGS, int32_t alpha; FX_COLORREF colorref; std::tie(alpha, colorref) = ArgbToAlphaAndColorRef(crColor); - FX_ARGB cr = ArgbEncode(iRate * alpha / 100, colorref); + FX_ARGB cr = AlphaAndColorRefToArgb(iRate * alpha / 100, colorref); pGS->SaveGraphState(); pGS->SetFillColor(CXFA_GEColor(cr)); |