| Index: core/src/fxge/win32/fx_win32_print.cpp
|
| diff --git a/core/src/fxge/win32/fx_win32_print.cpp b/core/src/fxge/win32/fx_win32_print.cpp
|
| index 4816c03e2c39e72056d743166f3cbcef375bb83c..6c262d83dc115dda55435d6ce6f884d4ec334456 100644
|
| --- a/core/src/fxge/win32/fx_win32_print.cpp
|
| +++ b/core/src/fxge/win32/fx_win32_print.cpp
|
| @@ -149,8 +149,7 @@ static CFX_DIBitmap* Transform1bppBitmap(const CFX_DIBSource* pSrc,
|
| uint8_t* src_buf = pSrcBitmap->GetBuffer();
|
| FX_DWORD src_pitch = pSrcBitmap->GetPitch();
|
| FX_FLOAT dest_area = pDestMatrix->GetUnitArea();
|
| - FX_FLOAT area_scale =
|
| - FXSYS_Div((FX_FLOAT)(src_width * src_height), dest_area);
|
| + FX_FLOAT area_scale = ((FX_FLOAT)(src_width * src_height)) / dest_area;
|
| FX_FLOAT size_scale = FXSYS_sqrt(area_scale);
|
| CFX_Matrix adjusted_matrix(*pDestMatrix);
|
| adjusted_matrix.Scale(size_scale, size_scale);
|
|
|