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

svn path=/trunk/KDE/kdebase/workspace/; revision=908403
This commit is contained in:
Alexis Ménard 2009-01-09 17:12:46 +00:00
parent edcd0112fa
commit e0d2b09d42

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);