Small optimization.
This commit is contained in:
parent
7ab0e82f67
commit
1dfcd5369c
@ -665,7 +665,7 @@ void FrameSvgPrivate::generateBackground(FrameData *frame)
|
||||
Theme *theme = Theme::defaultTheme();
|
||||
bool frameCached = !frame->cachedBackground.isNull();
|
||||
bool overlayCached = false;
|
||||
const bool overlayAvailable = !prefix.startsWith("mask-") && q->hasElement(prefix % "overlay");
|
||||
const bool overlayAvailable = !prefix.startsWith(QLatin1String("mask-")) && q->hasElement(prefix % "overlay");
|
||||
QPixmap overlay;
|
||||
if (q->isUsingRenderingCache()) {
|
||||
frameCached = theme->findInCache(id, frame->cachedBackground) && !frame->cachedBackground.isNull();
|
||||
|
Loading…
Reference in New Issue
Block a user