This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/100848/ |
On March 13th, 2011, 1:29 p.m., Thomas Lübking wrote:
kwin/outline.cpp (Diff revision 1) void Outline::showXOutline()133 QPixmap pix(m_outlineGeometry.width(), 5);since it's just a vertical reflection, you could just keep the above pixmap in context and for (int i = 0; i<4; ++i) p.drawPixmap(0,i, topPix, 0,3-i, topPix.width(), 1); you can also keep the painter and p.begin(&pix) instead of QPainter p(&pix) - it's only buggy in Qt if you change the renderengine (ie. use it on an image and then on a pixmap)
fixing myself: 2+2=5... for (int i = 0; i<5; ++i) p.drawPixmap(0,i, topPix, 0,4-i, topPix.width(), 1); if you want to spare allocating the "large" pixmap twice in a block you could also just mirror the corners in one 5x5 tmp pixmap
- Thomas
On March 13th, 2011, 12:37 p.m., Arthur Arlt wrote:
Review request for kwin.
By Arthur Arlt.
Updated March 13, 2011, 12:37 p.m. Description
Testing
Diffs
|