summaryrefslogtreecommitdiff
path: root/core/src/fxge/agg
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/fxge/agg')
-rw-r--r--core/src/fxge/agg/src/fx_agg_driver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/fxge/agg/src/fx_agg_driver.cpp b/core/src/fxge/agg/src/fx_agg_driver.cpp
index 50062541b1..8b0e3f94f4 100644
--- a/core/src/fxge/agg/src/fx_agg_driver.cpp
+++ b/core/src/fxge/agg/src/fx_agg_driver.cpp
@@ -144,8 +144,8 @@ static void RasterizeStroke(agg::rasterizer_scanline_aa& rasterizer,
FX_FLOAT width = pGraphState->m_LineWidth * scale;
FX_FLOAT unit = 1.f;
if (pObject2Device) {
- unit = FXSYS_Div(
- 1.0f, (pObject2Device->GetXUnit() + pObject2Device->GetYUnit()) / 2);
+ unit =
+ 1.0f / ((pObject2Device->GetXUnit() + pObject2Device->GetYUnit()) / 2);
}
if (width < unit) {
width = unit;