diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2009-11-10 11:08:31 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2009-11-10 11:20:21 (GMT) |
commit | 1340c2ff7d395b0da0749506eee70510ef1e0a15 (patch) | |
tree | 8dc4894394c1615e9d65ea582db362ee4819ff79 /src/opengl | |
parent | e35d08343032ca366541de2a892f36dfc266b0da (diff) | |
download | Qt-1340c2ff7d395b0da0749506eee70510ef1e0a15.zip Qt-1340c2ff7d395b0da0749506eee70510ef1e0a15.tar.gz Qt-1340c2ff7d395b0da0749506eee70510ef1e0a15.tar.bz2 |
Fixed drop shadows for opengl graphics system
Reviewed-by: Samuel
Diffstat (limited to 'src/opengl')
-rw-r--r-- | src/opengl/qglpixmapfilter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qglpixmapfilter.cpp b/src/opengl/qglpixmapfilter.cpp index 0eaab28..e171a21 100644 --- a/src/opengl/qglpixmapfilter.cpp +++ b/src/opengl/qglpixmapfilter.cpp @@ -989,7 +989,7 @@ bool QGLPixmapDropShadowFilter::processGL(QPainter *painter, const QPointF &pos, // ensure GL_LINEAR filtering is used painter->setRenderHint(QPainter::SmoothPixmapTransform); filter->setOnPainter(painter); - engine->drawTexture(targetRect, fbo->texture(), fbo->size(), src.rect().translated(0, fbo->height() - src.height())); + engine->drawTexture(targetRect, fbo->texture(), fbo->size(), QRectF(0, fbo->height() - targetRect.height(), targetRect.width(), targetRect.height())); filter->removeFromPainter(painter); painter->restore(); |