From dd6a247c624b508b862fbb05ecb96e8cb62c1023 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 19 Feb 2011 10:55:30 +0000 Subject: Fix ugly kdesktop shadow pixmap edges git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1221588 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdesktop/kshadowengine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kdesktop/kshadowengine.cpp b/kdesktop/kshadowengine.cpp index b90bf3b52..9b6529360 100644 --- a/kdesktop/kshadowengine.cpp +++ b/kdesktop/kshadowengine.cpp @@ -84,8 +84,9 @@ TQImage KShadowEngine::makeShadow(const TQPixmap& textPixmap, const TQColor &bgC result.create(w, h, 32); } + result.fill(0); // alpha to zero (Qt3 needs this) result.setAlphaBuffer(true); - result.fill(0); // all black + result.fill(0); // rest to all black (Qt4 needs this) for (int i = thick; i < w - thick; i++) { -- cgit v1.2.1