From 8d316461c43223242568ca0496eec8853177ef4f Mon Sep 17 00:00:00 2001 From: Rivo Laks Date: Fri, 28 Sep 2007 12:47:37 +0000 Subject: [PATCH] Fix shadow's size svn path=/trunk/KDE/kdebase/workspace/; revision=718307 --- effects/shadow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/effects/shadow.cpp b/effects/shadow.cpp index c948e19861..64094ce550 100644 --- a/effects/shadow.cpp +++ b/effects/shadow.cpp @@ -89,8 +89,8 @@ void ShadowEffect::drawShadow( EffectWindow* window, int mask, QRegion region, W glPushMatrix(); if( mask & PAINT_WINDOW_TRANSFORMED ) glTranslatef( data.xTranslate, data.yTranslate, 0 ); - glTranslatef( window->x() + shadowXOffset - shadowSize - qMax(0, w - window->width()) / 2.0, - window->y() + shadowYOffset - shadowSize - qMax(0, h - window->height()) / 2.0, 0 ); + glTranslatef( window->x() + shadowXOffset - qMax(0, w - window->width()) / 2.0, + window->y() + shadowYOffset - qMax(0, h - window->height()) / 2.0, 0 ); if(( mask & PAINT_WINDOW_TRANSFORMED ) && ( data.xScale != 1 || data.yScale != 1 )) glScalef( data.xScale, data.yScale, 1 );