Handle a fixme.

KWin's debug area is 1212.
CCMAIL: Rivo Laks <rivolaks@hot.ee>


svn path=/branches/work/kwin_composite/; revision=626743
This commit is contained in:
Luboš Luňák 2007-01-24 14:26:04 +00:00
parent f9555cf69e
commit e5f5ecf22e

View file

@ -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<Client *>(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;