[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeaddons/kicker-applets/mediacontrol
From:       Stefan Gehn <sgehn () gmx ! net>
Date:       2004-08-31 20:13:12
Message-ID: 20040831201312.1BEEC9266 () office ! kde ! org
[Download RAW message or body]

CVS commit by metz: 

Fix bug #85135 draw tiled pixmap on background, thats needed if the bg-pixmap is smaller than the button \
itself, otherwise the remaining area is left unpainted (thats where the distortion is visible).


  M +2 -1      mediacontrol.cpp   1.35


--- kdeaddons/kicker-applets/mediacontrol/mediacontrol.cpp  #1.34:1.35
@@ -589,5 +589,5 @@ void TrayButton::drawButton(QPainter *p)
         pbg.begin(&bg);
         if (parentWidget() && parentWidget()->backgroundPixmap())
-                pbg.drawPixmap(0, 0, *(parentWidget()->backgroundPixmap()), x(), y());
+                pbg.drawTiledPixmap(0, 0, width(), height(), *(parentWidget()->backgroundPixmap()), x(), \
y());  else
                 pbg.fillRect(rect(), colorGroup().brush(QColorGroup::Background));


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic