Plasma::Svg: Round the drawing size to the pixmap size, otherwise we can get bad arctefacts.

(noticable on the eyes applet)


svn path=/trunk/KDE/kdelibs/; revision=941021
This commit is contained in:
Olivier Goffart 2009-03-18 18:06:56 +00:00
parent 827f5f19be
commit 9264bd3e76

View File

@ -466,7 +466,7 @@ void Svg::paint(QPainter *painter, int x, int y, const QString &elementID)
void Svg::paint(QPainter *painter, const QRectF &rect, const QString &elementID) void Svg::paint(QPainter *painter, const QRectF &rect, const QString &elementID)
{ {
QPixmap pix(d->findInCache(elementID, rect.size())); QPixmap pix(d->findInCache(elementID, rect.size()));
painter->drawPixmap(rect, pix, QRectF(QPointF(0, 0), pix.size())); painter->drawPixmap(QRectF(rect.topLeft(), pix.size()), pix, QRectF(QPointF(0, 0), pix.size()));
} }
void Svg::paint(QPainter *painter, int x, int y, int width, int height, const QString &elementID) void Svg::paint(QPainter *painter, int x, int y, int width, int height, const QString &elementID)