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
This commit is contained in:
Vadim Zeitlin
2014-04-07 20:29:54 +00:00
parent 2ce4d9ef3e
commit 6a3e9a69ca

View File

@@ -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();
}