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 /fpdfsdk/cpdfsdk_widget.cpp | |
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 'fpdfsdk/cpdfsdk_widget.cpp')
-rw-r--r-- | fpdfsdk/cpdfsdk_widget.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fpdfsdk/cpdfsdk_widget.cpp b/fpdfsdk/cpdfsdk_widget.cpp index 6d81829bc9..055ad63aa5 100644 --- a/fpdfsdk/cpdfsdk_widget.cpp +++ b/fpdfsdk/cpdfsdk_widget.cpp @@ -707,9 +707,10 @@ void CPDFSDK_Widget::DrawShadow(CFX_RenderDevice* pDevice, rcDevice.Normalize(); FX_RECT rcDev = rcDevice.ToFxRect(); - pDevice->FillRect( - &rcDev, ArgbEncode(static_cast<int>(m_pInterForm->GetHighlightAlpha()), - m_pInterForm->GetHighlightColor(fieldType))); + pDevice->FillRect(&rcDev, + AlphaAndColorRefToArgb( + static_cast<int>(m_pInterForm->GetHighlightAlpha()), + m_pInterForm->GetHighlightColor(fieldType))); } CFX_FloatRect CPDFSDK_Widget::GetClientRect() const { |