diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-04-30 03:08:22 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-04-30 03:08:22 (GMT) |
commit | cc73c1e80b480e378a54ad976933f477ee7a5b9c (patch) | |
tree | a853dbd3b7da6002d58e8824ab781a39fe7d36d2 /src/declarative | |
parent | e3c91e87a06b73a06c86f93c69951768874bbaf6 (diff) | |
download | Qt-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.cpp | 4 |
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 } |