Fix window scaling (apply scale before translating).

svn path=/branches/work/kwin_composite/; revision=598743
This commit is contained in:
Luboš Luňák 2006-10-24 12:50:22 +00:00
parent a654e519e1
commit 189ca6c3a2

View file

@ -554,9 +554,10 @@ void SceneOpenGL::Window::performPaint( int mask, QRegion region, WindowPaintDat
{
x += data.xTranslate;
y += data.yTranslate;
glScalef( data.xScale, data.yScale, 1 );
}
glTranslatef( x, y, 0 );
if(( mask & PAINT_WINDOW_TRANSFORMED ) && ( data.xScale != 1 || data.yScale != 1 ))
glScalef( data.xScale, data.yScale, 1 );
bool was_blend = glIsEnabled( GL_BLEND );
if( !opaque )
{