Fix shadow's size
svn path=/trunk/KDE/kdebase/workspace/; revision=718307
This commit is contained in:
parent
0e1cb2a603
commit
8d316461c4
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue