From 2c8fad44315db58f5b3222161dcb699691dca904 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 23 Feb 2016 15:23:29 -0500 Subject: 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 . --- core/src/fxge/win32/fx_win32_gdipext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src/fxge/win32') diff --git a/core/src/fxge/win32/fx_win32_gdipext.cpp b/core/src/fxge/win32/fx_win32_gdipext.cpp index aaf7c36919..ce280948d7 100644 --- a/core/src/fxge/win32/fx_win32_gdipext.cpp +++ b/core/src/fxge/win32/fx_win32_gdipext.cpp @@ -1087,7 +1087,7 @@ static FX_BOOL IsSmallTriangle(PointF* points, } FX_FLOAT dx = x1 - x2; FX_FLOAT dy = y1 - y2; - FX_FLOAT distance_square = FXSYS_Mul(dx, dx) + FXSYS_Mul(dy, dy); + FX_FLOAT distance_square = (dx * dx) + (dy * dy); if (distance_square < (1.0f * 2 + 1.0f / 4)) { v1 = i; v2 = pair1; -- cgit v1.2.3