diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2016-02-23 15:23:29 -0500 |
---|---|---|
committer | Dan Sinclair <dsinclair@chromium.org> | 2016-02-23 15:23:29 -0500 |
commit | 2c8fad44315db58f5b3222161dcb699691dca904 (patch) | |
tree | 70e9bdf55e1e3197d8bd088abd103012b602e32f /core/src/fxge/dib | |
parent | 2886a25b68225ad3ad70d417b01108ad1d126488 (diff) | |
download | pdfium-2c8fad44315db58f5b3222161dcb699691dca904.tar.xz |
Remove FXSYS_Mul.
This define just multiples the two parameters together. Inline the *'s.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1729613003 .
Diffstat (limited to 'core/src/fxge/dib')
-rw-r--r-- | core/src/fxge/dib/fx_dib_engine.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/fxge/dib/fx_dib_engine.cpp b/core/src/fxge/dib/fx_dib_engine.cpp index de56567c51..47fca79846 100644 --- a/core/src/fxge/dib/fx_dib_engine.cpp +++ b/core/src/fxge/dib/fx_dib_engine.cpp @@ -274,10 +274,10 @@ CStretchEngine::CStretchEngine(IFX_ScanlineComposer* pDestBitmap, double scale_y = FXSYS_Div((FX_FLOAT)(m_SrcHeight), (FX_FLOAT)(m_DestHeight)); double base_x = m_DestWidth > 0 ? 0.0f : (FX_FLOAT)(m_DestWidth); double base_y = m_DestHeight > 0 ? 0.0f : (FX_FLOAT)(m_DestHeight); - double src_left = FXSYS_Mul(scale_x, (FX_FLOAT)(clip_rect.left) + base_x); - double src_right = FXSYS_Mul(scale_x, (FX_FLOAT)(clip_rect.right) + base_x); - double src_top = FXSYS_Mul(scale_y, (FX_FLOAT)(clip_rect.top) + base_y); - double src_bottom = FXSYS_Mul(scale_y, (FX_FLOAT)(clip_rect.bottom) + base_y); + double src_left = scale_x * ((FX_FLOAT)(clip_rect.left) + base_x); + double src_right = scale_x * ((FX_FLOAT)(clip_rect.right) + base_x); + double src_top = scale_y * ((FX_FLOAT)(clip_rect.top) + base_y); + double src_bottom = scale_y * ((FX_FLOAT)(clip_rect.bottom) + base_y); if (src_left > src_right) { double temp = src_left; src_left = src_right; |