mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
QWindowSurface::beginPaint() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
980ce7a30b
commit
8b86d478e4
2 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
|||
# https://wiki.archlinux.org/index.php/Arch_package_guidelines
|
||||
|
||||
pkgname=katie-git
|
||||
pkgver=4.12.0.r7671.96b700fdb
|
||||
pkgver=4.12.0.r7677.980ce7a30
|
||||
pkgrel=1
|
||||
pkgdesc='C++ toolkit derived from the Qt 4.8 framework'
|
||||
arch=('i486' 'i686' 'pentium4' 'x86_64' 'arm')
|
||||
|
|
|
@ -165,9 +165,9 @@ void QWindowSurface::beginPaint(const QRegion &rgn)
|
|||
if (!qt_widget_private(window())->isOpaque && window()->testAttribute(Qt::WA_TranslucentBackground)) {
|
||||
QPainter p(d_ptr->image);
|
||||
p.setCompositionMode(QPainter::CompositionMode_Source);
|
||||
foreach (const QRect &r, rgn.rects()) {
|
||||
p.fillRect(r, Qt::transparent);
|
||||
}
|
||||
p.setPen(Qt::NoPen);
|
||||
p.setBrush(QBrush(Qt::transparent));
|
||||
p.drawRects(rgn.rects());
|
||||
}
|
||||
#else
|
||||
Q_UNUSED(rgn);
|
||||
|
|
Loading…
Add table
Reference in a new issue