mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
renderer: rectified the bounds() behavior
Text fill is broken by 43c87b4eb5
This commit is contained in:
parent
3e78a95b57
commit
d7c4cda352
2 changed files with 2 additions and 2 deletions
|
@ -402,7 +402,7 @@ Matrix Paint::transform() noexcept
|
||||||
|
|
||||||
Result Paint::bounds(float* x, float* y, float* w, float* h, bool transformed) const noexcept
|
Result Paint::bounds(float* x, float* y, float* w, float* h, bool transformed) const noexcept
|
||||||
{
|
{
|
||||||
if (pImpl->bounds(x, y, w, h, transformed, true, true)) return Result::Success;
|
if (pImpl->bounds(x, y, w, h, transformed, true, transformed)) return Result::Success;
|
||||||
return Result::InsufficientCondition;
|
return Result::InsufficientCondition;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,7 @@ struct Text::Impl
|
||||||
bool bounds(float* x, float* y, float* w, float* h, TVG_UNUSED bool stroking)
|
bool bounds(float* x, float* y, float* w, float* h, TVG_UNUSED bool stroking)
|
||||||
{
|
{
|
||||||
if (!load() || !paint) return false;
|
if (!load() || !paint) return false;
|
||||||
paint->bounds(x, y, w, h, true);
|
PP(paint)->bounds(x, y, w, h, true, true, false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue