From e5f5ecf22e55794de8402f1a0a748d467f930cd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 24 Jan 2007 14:26:04 +0000 Subject: [PATCH] Handle a fixme. KWin's debug area is 1212. CCMAIL: Rivo Laks svn path=/branches/work/kwin_composite/; revision=626743 --- scene_opengl.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index d0f27a0e73..ce0d2588d0 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -644,10 +644,7 @@ void SceneOpenGL::Window::createVertexGrid(int xres, int yres) { int oldcount = verticeslist.count(); verticeslist.clear(); - // FIXME: this creates a QRegion out of rectangles just to get the list of - // rectangles. Maybe the QRegion construction can be bypassed? - QRegion region = shape(); - foreach( QRect r, region.rects()) + foreach( QRect r, shape().rects()) { // First calculate number of columns/rows that this rect will be // divided into @@ -673,7 +670,7 @@ void SceneOpenGL::Window::createVertexGrid(int xres, int yres) } } Client* c = qobject_cast(window()); - kDebug() << k_funcinfo << "'" << (c ? c->caption() : "") << "': Resized vertex grid from " << + kDebug( 1212 ) << k_funcinfo << "'" << (c ? c->caption() : "") << "': Resized vertex grid from " << oldcount/4 << " quads (minreso: " << currentXResolution << "x" << currentYResolution << ") to " << verticeslist.count()/4 << " quads (minreso: " << xres << "x" << yres << ")" << endl;