Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- ./src/3rdparty/webkit/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp.orig 2012-06-14 14:56:35.321916873 +0400
- +++ ./src/3rdparty/webkit/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp 2012-06-13 23:04:37.233047786 +0400
- @@ -243,6 +243,7 @@
- initialSmoothPixmapTransformHint = painter->testRenderHint(QPainter::SmoothPixmapTransform);
- painter->setRenderHint(QPainter::Antialiasing, true);
- + painter->setRenderHint(QPainter::SmoothPixmapTransform, true);
- }
- GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate()
- @@ -1371,25 +1372,26 @@
- void GraphicsContext::setImageInterpolationQuality(InterpolationQuality quality)
- {
- m_data->imageInterpolationQuality = quality;
- + m_data->p()->setRenderHint(QPainter::SmoothPixmapTransform, true);
- - switch (quality) {
- - case InterpolationNone:
- - case InterpolationLow:
- - // use nearest-neigbor
- - m_data->p()->setRenderHint(QPainter::SmoothPixmapTransform, false);
- - break;
- -
- - case InterpolationMedium:
- - case InterpolationHigh:
- - // use the filter
- - m_data->p()->setRenderHint(QPainter::SmoothPixmapTransform, true);
- - break;
- -
- - case InterpolationDefault:
- - default:
- - m_data->p()->setRenderHint(QPainter::SmoothPixmapTransform, m_data->initialSmoothPixmapTransformHint);
- - break;
- - };
- + // switch (quality) {
- + // case InterpolationNone:
- + // case InterpolationLow:
- + // // use nearest-neigbor
- + // m_data->p()->setRenderHint(QPainter::SmoothPixmapTransform, false);
- + // break;
- +
- + // case InterpolationMedium:
- + // case InterpolationHigh:
- + // // use the filter
- + // m_data->p()->setRenderHint(QPainter::SmoothPixmapTransform, true);
- + // break;
- +
- + // case InterpolationDefault:
- + // default:
- + // m_data->p()->setRenderHint(QPainter::SmoothPixmapTransform, m_data->initialSmoothPixmapTransformHint);
- + // break;
- + // };
- }
- InterpolationQuality GraphicsContext::imageInterpolationQuality() const
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement