Fix window scaling (apply scale before translating).
svn path=/branches/work/kwin_composite/; revision=598743
This commit is contained in:
parent
a654e519e1
commit
189ca6c3a2
1 changed files with 2 additions and 1 deletions
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue