backport commit 908403 from trunk

QImage.fill take a uint not a QColor so this color (Qt::transparent enum with 19 as a value) is invalid.

svn path=/branches/KDE/4.2/kdebase/workspace/; revision=908406
This commit is contained in:
Alexis Ménard 2009-01-09 17:14:28 +00:00
parent 4e999d723a
commit 3951c815c7

View file

@ -434,7 +434,7 @@ void ShowFpsEffect::paintFPSText(int fps)
return;
#ifdef KWIN_HAVE_OPENGL_COMPOSITING
QImage im(100, 100, QImage::Format_ARGB32);
im.fill(Qt::transparent);
im.fill(0);
QPainter painter(&im);
painter.setFont(textFont);
painter.setPen(textColor);