From 189ca6c3a251e87840a1bf7f1ea25b4fbc0a9c02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 24 Oct 2006 12:50:22 +0000 Subject: [PATCH] Fix window scaling (apply scale before translating). svn path=/branches/work/kwin_composite/; revision=598743 --- scene_opengl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index 0dd460f97c..d151099ba6 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -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 ) {