diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-10-05 11:14:12 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-10-05 17:22:58 +0000 |
commit | 921fe6bfde3b4cf3da4b55fab77103af3a65cab4 (patch) | |
tree | 2587bf5ab7c8d72a085137c9986235c0c1514b2c /fpdfsdk/pwl | |
parent | 023d645733cddcf026897c51f3d4c34090eb4b2d (diff) | |
download | pdfium-921fe6bfde3b4cf3da4b55fab77103af3a65cab4.tar.xz |
Move CPDF_RenderOptions members to private
This CL moves the members of CPDF_RenderOptions to be private members
and adds accessor methods as needed.
Change-Id: Ie91665ff53ae00cc4c53741d089d375503fabe11
Reviewed-on: https://pdfium-review.googlesource.com/15531
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/pwl')
-rw-r--r-- | fpdfsdk/pwl/cpwl_edit_impl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fpdfsdk/pwl/cpwl_edit_impl.cpp b/fpdfsdk/pwl/cpwl_edit_impl.cpp index 89b19de63d..7d8c0c3ba6 100644 --- a/fpdfsdk/pwl/cpwl_edit_impl.cpp +++ b/fpdfsdk/pwl/cpwl_edit_impl.cpp @@ -59,8 +59,9 @@ void DrawTextString(CFX_RenderDevice* pDevice, } CPDF_RenderOptions ro; - ro.m_Flags = RENDER_CLEARTYPE; - ro.m_ColorMode = CPDF_RenderOptions::kNormal; + ro.SetFlags(RENDER_CLEARTYPE); + + ro.SetColorMode(CPDF_RenderOptions::kNormal); CPDF_TextRenderer::DrawTextString(pDevice, pos.x, pos.y, pFont, fFontSize, &mt, str, crTextFill, nullptr, &ro); } |