renderer: rectified the bounds() behavior

Text fill is broken by 43c87b4eb5
This commit is contained in:
Hermet Park 2024-08-08 14:13:58 +09:00 committed by Hermet Park
parent 3e78a95b57
commit d7c4cda352
2 changed files with 2 additions and 2 deletions

View file

@ -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;
} }

View file

@ -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;
} }