diff options
Diffstat (limited to 'core/fxge/win32/fx_win32_gdipext.cpp')
-rw-r--r-- | core/fxge/win32/fx_win32_gdipext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxge/win32/fx_win32_gdipext.cpp b/core/fxge/win32/fx_win32_gdipext.cpp index f93ce8f9ad..8e80b50fbc 100644 --- a/core/fxge/win32/fx_win32_gdipext.cpp +++ b/core/fxge/win32/fx_win32_gdipext.cpp @@ -778,12 +778,12 @@ bool CGdiplusExt::StretchDIBits(HDC hDC, int dest_width, int dest_height, const FX_RECT* pClipRect, - int flags) { + const FXDIB_ResampleOptions& options) { Gdiplus::GpGraphics* pGraphics; const CGdiplusExt& GdiplusExt = GetGdiplusExt(); CallFunc(GdipCreateFromHDC)(hDC, &pGraphics); CallFunc(GdipSetPageUnit)(pGraphics, Gdiplus::UnitPixel); - if (flags & FXDIB_NOSMOOTH) { + if (options.bNoSmoothing) { CallFunc(GdipSetInterpolationMode)( pGraphics, Gdiplus::InterpolationModeNearestNeighbor); } else if (pBitmap->GetWidth() > abs(dest_width) / 2 || |