mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-05 00:55:12 +00:00
Generate static complex gradients.
This commit is contained in:
@@ -138,9 +138,9 @@ void SectionWidget::PaintBackground(
|
||||
cache.pixmap);
|
||||
}
|
||||
};
|
||||
const auto goodNow = !state.now.pixmap.isNull()
|
||||
&& (state.now.area == fill);
|
||||
const auto useCache = goodNow || !gradient.isNull();
|
||||
const auto hasNow = !state.now.pixmap.isNull();
|
||||
const auto goodNow = hasNow && (state.now.area == fill);
|
||||
const auto useCache = goodNow || (hasNow && !gradient.isNull());
|
||||
if (useCache) {
|
||||
if (state.shown < 1. && !gradient.isNull()) {
|
||||
paintCache(state.was);
|
||||
|
Reference in New Issue
Block a user