summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_textrenderer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/render/cpdf_textrenderer.cpp')
-rw-r--r--core/fpdfapi/render/cpdf_textrenderer.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/core/fpdfapi/render/cpdf_textrenderer.cpp b/core/fpdfapi/render/cpdf_textrenderer.cpp
index 283d9946fa..711dbfaf39 100644
--- a/core/fpdfapi/render/cpdf_textrenderer.cpp
+++ b/core/fpdfapi/render/cpdf_textrenderer.cpp
@@ -125,19 +125,18 @@ bool CPDF_TextRenderer::DrawNormalText(CFX_RenderDevice* pDevice,
return true;
int FXGE_flags = 0;
if (pOptions) {
- uint32_t dwFlags = pOptions->m_Flags;
- if (dwFlags & RENDER_CLEARTYPE) {
+ if (pOptions->HasFlag(RENDER_CLEARTYPE)) {
FXGE_flags |= FXTEXT_CLEARTYPE;
- if (dwFlags & RENDER_BGR_STRIPE)
+ if (pOptions->HasFlag(RENDER_BGR_STRIPE))
FXGE_flags |= FXTEXT_BGR_STRIPE;
}
- if (dwFlags & RENDER_NOTEXTSMOOTH)
+ if (pOptions->HasFlag(RENDER_NOTEXTSMOOTH))
FXGE_flags |= FXTEXT_NOSMOOTH;
- if (dwFlags & RENDER_PRINTGRAPHICTEXT)
+ if (pOptions->HasFlag(RENDER_PRINTGRAPHICTEXT))
FXGE_flags |= FXTEXT_PRINTGRAPHICTEXT;
- if (dwFlags & RENDER_NO_NATIVETEXT)
+ if (pOptions->HasFlag(RENDER_NO_NATIVETEXT))
FXGE_flags |= FXTEXT_NO_NATIVETEXT;
- if (dwFlags & RENDER_PRINTIMAGETEXT)
+ if (pOptions->HasFlag(RENDER_PRINTIMAGETEXT))
FXGE_flags |= FXTEXT_PRINTIMAGETEXT;
} else {
FXGE_flags = FXTEXT_CLEARTYPE;