TINYGL: Added comment to the code.

This commit is contained in:
Stefano Musumeci 2014-08-09 14:40:18 +02:00
parent 688a76455a
commit a42d9e2b2d

View file

@ -81,6 +81,7 @@ void tglPresentBuffer() {
rectangles.push_back(DirtyRectangle(currentCall.getDirtyRegion(), 255, 0, 0)); rectangles.push_back(DirtyRectangle(currentCall.getDirtyRegion(), 255, 0, 0));
} }
// This loop increases outer rectangle coordinates to favor merging of adjacent rectangles.
for (RectangleIterator it = rectangles.begin(); it != rectangles.end(); ++it) { for (RectangleIterator it = rectangles.begin(); it != rectangles.end(); ++it) {
(*it).rectangle.right++; (*it).rectangle.right++;
(*it).rectangle.bottom++; (*it).rectangle.bottom++;