summaryrefslogtreecommitdiff
path: root/core/src/fpdfapi/fpdf_render
diff options
context:
space:
mode:
authorJohn Abd-El-Malek <jam@chromium.org>2014-05-21 12:41:01 -0700
committerJohn Abd-El-Malek <jam@chromium.org>2014-05-21 12:41:01 -0700
commita531ead2bd4902863e1de7611997781f2e03c28c (patch)
tree64b27d7439e5788791e2d5ffcac27a26fdf1f805 /core/src/fpdfapi/fpdf_render
parenta3f590b60af4bf50c00df4cf9565cc6df0b5667c (diff)
downloadpdfium-a531ead2bd4902863e1de7611997781f2e03c28c.tar.xz
Fix clang warnings so we can treat warnings as errors.
Diffstat (limited to 'core/src/fpdfapi/fpdf_render')
-rw-r--r--core/src/fpdfapi/fpdf_render/fpdf_render.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/fpdfapi/fpdf_render/fpdf_render.cpp b/core/src/fpdfapi/fpdf_render/fpdf_render.cpp
index 0be25e3a79..fba698ca62 100644
--- a/core/src/fpdfapi/fpdf_render/fpdf_render.cpp
+++ b/core/src/fpdfapi/fpdf_render/fpdf_render.cpp
@@ -827,8 +827,8 @@ FX_BOOL CPDF_RenderStatus::ProcessTransparency(const CPDF_PageObject* pPageObj,
return TRUE;
}
CFX_Matrix deviceCTM = m_pDevice->GetCTM();
- FX_FLOAT scaleX = FXSYS_abs(deviceCTM.a);
- FX_FLOAT scaleY = FXSYS_abs(deviceCTM.d);
+ FX_FLOAT scaleX = FXSYS_fabs(deviceCTM.a);
+ FX_FLOAT scaleY = FXSYS_fabs(deviceCTM.d);
int width = FXSYS_round((FX_FLOAT)rect.Width() * scaleX);
int height = FXSYS_round((FX_FLOAT)rect.Height() * scaleY);
CFX_FxgeDevice bitmap_device;
@@ -911,8 +911,8 @@ CFX_DIBitmap* CPDF_RenderStatus::GetBackdrop(const CPDF_PageObject* pObj, const
left = bbox.left;
top = bbox.top;
CFX_Matrix deviceCTM = m_pDevice->GetCTM();
- FX_FLOAT scaleX = FXSYS_abs(deviceCTM.a);
- FX_FLOAT scaleY = FXSYS_abs(deviceCTM.d);
+ FX_FLOAT scaleX = FXSYS_fabs(deviceCTM.a);
+ FX_FLOAT scaleY = FXSYS_fabs(deviceCTM.d);
int width = FXSYS_round(bbox.Width() * scaleX);
int height = FXSYS_round(bbox.Height() * scaleY);
CFX_DIBitmap* pBackdrop = FX_NEW CFX_DIBitmap;