diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2016-02-23 16:04:59 -0500 |
---|---|---|
committer | Dan Sinclair <dsinclair@chromium.org> | 2016-02-23 16:04:59 -0500 |
commit | affe4b09575b297747e66bd0b807d2b1b04822fe (patch) | |
tree | 249ef3593f4e4187454d70da14f0f0624a932039 /core/src/fxge/ge | |
parent | c145aeb2bf13ac408fc3e8233acca43d4251bbdc (diff) | |
download | pdfium-affe4b09575b297747e66bd0b807d2b1b04822fe.tar.xz |
Remove FXSYS_Div.
This is just a wrapper for (a) / (b). Inline the divide.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1727793002 .
Diffstat (limited to 'core/src/fxge/ge')
-rw-r--r-- | core/src/fxge/ge/fx_ge_path.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/fxge/ge/fx_ge_path.cpp b/core/src/fxge/ge/fx_ge_path.cpp index 0084f092d1..0c24c0ff64 100644 --- a/core/src/fxge/ge/fx_ge_path.cpp +++ b/core/src/fxge/ge/fx_ge_path.cpp @@ -263,14 +263,14 @@ static void _UpdateLineJoinPoints(CFX_FloatRect& rect, return; } if (!bStartVert) { - start_k = FXSYS_Div(middle_y - start_y, middle_x - start_x); + start_k = (middle_y - start_y) / (middle_x - start_x); start_c = middle_y - (start_k * middle_x); start_len = FXSYS_sqrt2(start_x - middle_x, start_y - middle_y); start_dc = (FX_FLOAT)FXSYS_fabs( FXSYS_MulDiv(half_width, start_len, start_x - middle_x)); } if (!bEndVert) { - end_k = FXSYS_Div(end_y - middle_y, end_x - middle_x); + end_k = (end_y - middle_y) / (end_x - middle_x); end_c = middle_y - (end_k * middle_x); end_len = FXSYS_sqrt2(end_x - middle_x, end_y - middle_y); end_dc = (FX_FLOAT)FXSYS_fabs( @@ -331,7 +331,7 @@ static void _UpdateLineJoinPoints(CFX_FloatRect& rect, } else { end_outside_c -= end_dc; } - FX_FLOAT join_x = FXSYS_Div(end_outside_c - start_outside_c, start_k - end_k); + FX_FLOAT join_x = (end_outside_c - start_outside_c) / (start_k - end_k); FX_FLOAT join_y = (start_k * join_x) + start_outside_c; rect.UpdateRect(join_x, join_y); } |