Fix shadow's size

svn path=/trunk/KDE/kdebase/workspace/; revision=718307
This commit is contained in:
Rivo Laks 2007-09-28 12:47:37 +00:00
parent 0e1cb2a603
commit 8d316461c4

View file

@ -89,8 +89,8 @@ void ShadowEffect::drawShadow( EffectWindow* window, int mask, QRegion region, W
glPushMatrix(); glPushMatrix();
if( mask & PAINT_WINDOW_TRANSFORMED ) if( mask & PAINT_WINDOW_TRANSFORMED )
glTranslatef( data.xTranslate, data.yTranslate, 0 ); glTranslatef( data.xTranslate, data.yTranslate, 0 );
glTranslatef( window->x() + shadowXOffset - shadowSize - qMax(0, w - window->width()) / 2.0, glTranslatef( window->x() + shadowXOffset - qMax(0, w - window->width()) / 2.0,
window->y() + shadowYOffset - shadowSize - qMax(0, h - window->height()) / 2.0, 0 ); window->y() + shadowYOffset - qMax(0, h - window->height()) / 2.0, 0 );
if(( mask & PAINT_WINDOW_TRANSFORMED ) && ( data.xScale != 1 || data.yScale != 1 )) if(( mask & PAINT_WINDOW_TRANSFORMED ) && ( data.xScale != 1 || data.yScale != 1 ))
glScalef( data.xScale, data.yScale, 1 ); glScalef( data.xScale, data.yScale, 1 );