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
icc-effect-5.14.5
Alexis Ménard 2009-01-09 17:14:28 +00:00
parent 4e999d723a
commit 3951c815c7
1 changed files with 1 additions and 1 deletions

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