FrameSvgItem: fix textureRect for tiled subitems to not shrink to 0

Authored by kossebau on Mar 15 2019, 2:24 PM.

Description

FrameSvgItem: fix textureRect for tiled subitems to not shrink to 0

Summary:
The old logic results in broken rendering if the sample was bigger than the
area to render, due to normalized texture rect being 0 in the respective
dimansion. As well as stretched mapping of the sample for fractional
relationships between the area to render and the sample size.

Test Plan:
Borders of backgrounds of FluffyBunny theme render properly, no other
regressions seen (but unsure what else might rely on that artifact).

Reviewers: Plasma, mart

Reviewed By: Plasma, mart

Subscribers: apol, sitter, kde-frameworks-devel

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D19787

Details

Committed
kossebauMar 19 2019, 11:52 PM
Reviewer
Plasma
Differential Revision
D19787: FrameSvgItem: fix textureRect for tiled subitems to not shrink to 0
Parents
R242:3aba8a7e10e5: Fix breeze dialog background with Qt 5.12.2
Branches
Unknown
Tags
Unknown