Index: core/src/fxge/dib/fx_dib_engine.cpp |
diff --git a/core/src/fxge/dib/fx_dib_engine.cpp b/core/src/fxge/dib/fx_dib_engine.cpp |
index de56567c51452fdd3aaa887c8ba62aec029e43d5..47fca79846a2025a0006a97bbf81ea70e890b4de 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; |