[Icon Item] Set filtering on FadingNode texture
Ensures the fading node's texture has the same filtering as the regular node, otherwise during transition the icon could show scaling artefacts. Differential Revision: https://phabricator.kde.org/D10533
This commit is contained in:
parent
581dc48ff8
commit
c05b1bdec7
@ -482,7 +482,9 @@ QSGNode* IconItem::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *update
|
||||
delete oldNode;
|
||||
|
||||
QSGTexture *source = window()->createTextureFromImage(m_iconPixmap.toImage());
|
||||
source->setFiltering(m_smooth ? QSGTexture::Linear : QSGTexture::Nearest);
|
||||
QSGTexture *target = window()->createTextureFromImage(m_oldIconPixmap.toImage());
|
||||
target->setFiltering(m_smooth ? QSGTexture::Linear : QSGTexture::Nearest);
|
||||
animatingNode = new FadingNode(source, target);
|
||||
m_sizeChanged = true;
|
||||
m_textureChanged = false;
|
||||
|
Loading…
Reference in New Issue
Block a user