mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-05 00:55:12 +00:00
Fix delayed pattern-with-negative-intensity appearance.
This commit is contained in:
@@ -191,7 +191,11 @@ void SectionWidget::PaintBackground(
|
||||
const auto to = QRect(
|
||||
QPoint(cache.x, fromy + cache.y),
|
||||
cache.pixmap.size() / cIntRetinaFactor());
|
||||
if (cache.area == fill) {
|
||||
if (cache.waitingForNegativePattern) {
|
||||
// While we wait for pattern being loaded we paint just gradient.
|
||||
// But in case of negative patter opacity we just fill-black.
|
||||
p.fillRect(to, Qt::black);
|
||||
} else if (cache.area == fill) {
|
||||
p.drawPixmap(to, cache.pixmap);
|
||||
} else {
|
||||
const auto sx = fill.width() / float64(cache.area.width());
|
||||
|
Reference in New Issue
Block a user