Chromium Code Reviews| Index: core/src/fxge/win32/fx_win32_device.cpp | 
| diff --git a/core/src/fxge/win32/fx_win32_device.cpp b/core/src/fxge/win32/fx_win32_device.cpp | 
| index 154bbc407c873b132e1f52064ce55d463131978c..e19cb755603b4567b0f5d0b7065f1b2b34bac839 100644 | 
| --- a/core/src/fxge/win32/fx_win32_device.cpp | 
| +++ b/core/src/fxge/win32/fx_win32_device.cpp | 
| @@ -531,7 +531,7 @@ FX_BOOL CGdiDeviceDriver::GDI_StretchDIBits(const CFX_DIBitmap* pBitmap1, int de | 
| } | 
| CFX_DIBitmap* pToStrechBitmap = pBitmap; | 
| bool del = false; | 
| - if (m_DeviceClass == FXDC_PRINTER && (pBitmap->GetWidth() * pBitmap->GetHeight() > abs(dest_width) * abs(dest_height))) { | 
| + if (m_DeviceClass == FXDC_PRINTER && ((long long)pBitmap->GetWidth() * pBitmap->GetHeight() > (long long)abs(dest_width) * abs(dest_height))) { | 
| 
 
Vitaly Buka (NO REVIEWS)
2014/07/31 00:00:06
looks like FX_INT64 is more consistent here
 
Bo Xu
2014/07/31 16:51:10
That's right.
 
 | 
| pToStrechBitmap = pBitmap->StretchTo(dest_width, dest_height); | 
| del = true; | 
| } |