From 6a3e9a69caee25bf72020ab5fd3176d8ee48fd45 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 7 Apr 2014 20:29:54 +0000 Subject: [PATCH] Fix mismatch between GDI+ and wxGraphicsContext interpolation quality. Use wxGDIPlusContext own method instead of using GDI+ method directly when setting the interpolation mode in wxGDIPlusContext initialization code to ensure that m_interpolation field matches the real interpolation mode used. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/graphics.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/msw/graphics.cpp b/src/msw/graphics.cpp index 8b9ace2015..e0af6a5d10 100644 --- a/src/msw/graphics.cpp +++ b/src/msw/graphics.cpp @@ -1421,7 +1421,9 @@ void wxGDIPlusContext::Init(Graphics* graphics, int width, int height) m_context->SetTextRenderingHint(TextRenderingHintSystemDefault); m_context->SetPixelOffsetMode(PixelOffsetModeHalf); m_context->SetSmoothingMode(SmoothingModeHighQuality); - m_context->SetInterpolationMode(InterpolationModeHighQuality); + + SetInterpolationQuality(wxINTERPOLATION_GOOD); + m_state1 = m_context->Save(); m_state2 = m_context->Save(); }