Index: core/src/fxge/win32/fx_win32_gdipext.cpp |
diff --git a/core/src/fxge/win32/fx_win32_gdipext.cpp b/core/src/fxge/win32/fx_win32_gdipext.cpp |
index ce280948d70ce19a6a16df329f9fc7ef415570b3..e71d94d31066a9ee1fbbd27b42e8dcfac0adebf8 100644 |
--- a/core/src/fxge/win32/fx_win32_gdipext.cpp |
+++ b/core/src/fxge/win32/fx_win32_gdipext.cpp |
@@ -973,9 +973,8 @@ static GpPen* _GdipCreatePen(const CFX_GraphStateData* pGraphState, |
FX_FLOAT width = pGraphState ? pGraphState->m_LineWidth : 1.0f; |
if (!bTextMode) { |
FX_FLOAT unit = |
- pMatrix |
- ? FXSYS_Div(1.0f, (pMatrix->GetXUnit() + pMatrix->GetYUnit()) / 2) |
- : 1.0f; |
+ pMatrix ? 1.0f / ((pMatrix->GetXUnit() + pMatrix->GetYUnit()) / 2) |
+ : 1.0f; |
if (width < unit) { |
width = unit; |
} |