Revision b438eea...

Go back to digest for 1st December 2013

Optimization in KDE Base

Raul Fernandes committed changes in [kde-workspace] kwin/scene_opengl.cpp:

Calculate the intersection only once

The intersection of rects are calculated twice without need.
The function QRectF::intersected() calculate and returns the intersection.
If there are no interesection, the returned QRectF is empty.
If the intersected QRectF is equal to QRectF argument, it contains the QRectF argument.

Reviewed in:

File Changes

Modified 1 files
  • kwin/scene_opengl.cpp
1 files changed in total