Only update the internal variable if we really succeeded in changing the
interpolation mode.
See #14134.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71009
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if (m_interpolation == interpolation)
return true;
if (m_interpolation == interpolation)
return true;
- m_interpolation = interpolation;
-
InterpolationMode interpolationMode = InterpolationModeDefault;
switch (interpolation)
{
InterpolationMode interpolationMode = InterpolationModeDefault;
switch (interpolation)
{
- m_context->SetInterpolationMode(interpolationMode);
+
+ if ( m_context->SetInterpolationMode(interpolationMode) != Gdiplus::Ok )
+ return false;
+
+ m_interpolation = interpolation;
+