summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-04-30 03:08:22 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-04-30 03:08:22 (GMT)
commitcc73c1e80b480e378a54ad976933f477ee7a5b9c (patch)
treea853dbd3b7da6002d58e8824ab781a39fe7d36d2 /src/declarative
parente3c91e87a06b73a06c86f93c69951768874bbaf6 (diff)
downloadQt-cc73c1e80b480e378a54ad976933f477ee7a5b9c.zip
Qt-cc73c1e80b480e378a54ad976933f477ee7a5b9c.tar.gz
Qt-cc73c1e80b480e378a54ad976933f477ee7a5b9c.tar.bz2
Fix smooth scaling
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/fx/qfxwebview.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/fx/qfxwebview.cpp b/src/declarative/fx/qfxwebview.cpp
index 7c05088..05730f9 100644
--- a/src/declarative/fx/qfxwebview.cpp
+++ b/src/declarative/fx/qfxwebview.cpp
@@ -589,7 +589,8 @@ void QFxWebView::paintGLContents(GLPainter &p)
#if defined(QFX_RENDER_QPAINTER)
bool wasAA = p.testRenderHint(QPainter::Antialiasing);
- p.setRenderHints(QPainter::Antialiasing, d->smooth);
+ bool wasSM = p.testRenderHint(QPainter::SmoothPixmapTransform);
+ p.setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform, d->smooth);
QRectF clipf = p.clipRegion().boundingRect();
const QRect clip = p.clipRegion().isEmpty() ? content : clipf.toRect();
#elif defined(QFX_RENDER_OPENGL)
@@ -656,6 +657,7 @@ void QFxWebView::paintGLContents(GLPainter &p)
}
#if defined(QFX_RENDER_QPAINTER)
p.setRenderHints(QPainter::Antialiasing, wasAA);
+ p.setRenderHints(QPainter::SmoothPixmapTransform, wasSM);
#endif
}