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:
parent
4e999d723a
commit
3951c815c7
1 changed files with 1 additions and 1 deletions
|
@ -434,7 +434,7 @@ void ShowFpsEffect::paintFPSText(int fps)
|
||||||
return;
|
return;
|
||||||
#ifdef KWIN_HAVE_OPENGL_COMPOSITING
|
#ifdef KWIN_HAVE_OPENGL_COMPOSITING
|
||||||
QImage im(100, 100, QImage::Format_ARGB32);
|
QImage im(100, 100, QImage::Format_ARGB32);
|
||||||
im.fill(Qt::transparent);
|
im.fill(0);
|
||||||
QPainter painter(&im);
|
QPainter painter(&im);
|
||||||
painter.setFont(textFont);
|
painter.setFont(textFont);
|
||||||
painter.setPen(textColor);
|
painter.setPen(textColor);
|
||||||
|
|
Loading…
Reference in a new issue