diff options
| author | Tom Sepez <tsepez@chromium.org> | 2019-11-08 20:31:35 +0000 |
|---|---|---|
| committer | Chromium commit bot <commit-bot@chromium.org> | 2019-11-08 20:31:35 +0000 |
| commit | ea8d8d856bb644bd9348d2424d284e76da0f487b (patch) | |
| tree | b0160eee41fc18ea591572c11af11f7697fe4da8 /fxbarcode/oned/BC_OnedUPCAWriter.cpp | |
| parent | e6ea9aebf3c361ee10e4cd550f54a9f263d9a446 (diff) | |
| download | platform_external_pdfium-ea8d8d856bb644bd9348d2424d284e76da0f487b.tar.gz platform_external_pdfium-ea8d8d856bb644bd9348d2424d284e76da0f487b.tar.bz2 platform_external_pdfium-ea8d8d856bb644bd9348d2424d284e76da0f487b.zip | |
Remove CBC_Writer::Set{Background,Barcode}Color().
These are only called from the same-named methods in CBC_CodeBase,
which are themselves not called. Replace the members formerly set
with static constants.
Change-Id: Ic75409924d9502bfedf8018b757d824b09a2bcf1
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/62030
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxbarcode/oned/BC_OnedUPCAWriter.cpp')
| -rw-r--r-- | fxbarcode/oned/BC_OnedUPCAWriter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fxbarcode/oned/BC_OnedUPCAWriter.cpp b/fxbarcode/oned/BC_OnedUPCAWriter.cpp index e807ca304..f897e4807 100644 --- a/fxbarcode/oned/BC_OnedUPCAWriter.cpp +++ b/fxbarcode/oned/BC_OnedUPCAWriter.cpp @@ -129,7 +129,7 @@ bool CBC_OnedUPCAWriter::ShowChars(WideStringView contents, (float)(leftPosition + strWidth - 0.5), (float)m_Height); matr.Concat(*matrix); FX_RECT re = matr.TransformRect(rect).GetOuterRect(); - device->FillRect(re, m_backgroundColor); + device->FillRect(re, kBackgroundColor); CFX_Matrix matr1(m_outputHScale, 0.0, 0.0, 1.0, 0.0, 0.0); CFX_FloatRect rect1((float)(leftPosition + 40 * multiple), (float)(m_Height - iTextHeight), @@ -137,14 +137,14 @@ bool CBC_OnedUPCAWriter::ShowChars(WideStringView contents, (float)m_Height); matr1.Concat(*matrix); re = matr1.TransformRect(rect1).GetOuterRect(); - device->FillRect(re, m_backgroundColor); + device->FillRect(re, kBackgroundColor); float strWidth1 = (float)multiple * 7; CFX_Matrix matr2(m_outputHScale, 0.0, 0.0, 1.0, 0.0, 0.0); CFX_FloatRect rect2(0.0, (float)(m_Height - iTextHeight), (float)strWidth1 - 1, (float)m_Height); matr2.Concat(*matrix); re = matr2.TransformRect(rect2).GetOuterRect(); - device->FillRect(re, m_backgroundColor); + device->FillRect(re, kBackgroundColor); CFX_Matrix matr3(m_outputHScale, 0.0, 0.0, 1.0, 0.0, 0.0); CFX_FloatRect rect3((float)(leftPosition + 85 * multiple), (float)(m_Height - iTextHeight), @@ -152,7 +152,7 @@ bool CBC_OnedUPCAWriter::ShowChars(WideStringView contents, (float)m_Height); matr3.Concat(*matrix); re = matr3.TransformRect(rect3).GetOuterRect(); - device->FillRect(re, m_backgroundColor); + device->FillRect(re, kBackgroundColor); strWidth = strWidth * m_outputHScale; CalcTextInfo(tempStr, &charpos[1], m_pFont.Get(), strWidth, iFontSize, blank); |
