From 35b5af4a87df6fd8b84543a81be626f67edea813 Mon Sep 17 00:00:00 2001 From: "Daniel M. Duley" Date: Sat, 8 Apr 2000 23:40:56 +0000 Subject: [PATCH] Fixes for buffering and when there is a bg widget pixmap. svn path=/trunk/kdebase/kwin/; revision=46034 --- clients/system/systemclient.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/clients/system/systemclient.cpp b/clients/system/systemclient.cpp index ce1869e28b..2f14295add 100644 --- a/clients/system/systemclient.cpp +++ b/clients/system/systemclient.cpp @@ -54,8 +54,7 @@ static void create_pixmaps() pixmaps_created = true; QPainter p; - if(QPixmap::defaultDepth() > 8 && - kapp->palette().normal().brush(QColorGroup::Background).pixmap()==NULL){ + if(QPixmap::defaultDepth() > 8){ aUpperGradient = new KPixmap; aUpperGradient->resize(32, 18); iUpperGradient = new KPixmap; @@ -331,9 +330,7 @@ void SystemClient::paintEvent( QPaintEvent* ) if(iUpperGradient) p.drawTiledPixmap(0, 0, width(), 18, *iUpperGradient); else - p.fillRect(0, 0, width(), 18, - options->colorGroup(Options::Frame, false). - brush(QColorGroup::Button)); + p.fillRect(0, 0, width(), 18, fillBrush); p.setPen(options->color(Options::GrooveText, isActive())); p.setFont(options->font(isActive())); p.drawText(t, AlignCenter, caption() );