For a very specific scaling factors shapes were to much clipped
because of wrong rounding of the viewport.
Change-Id: Icfd42938c3754c91381565e0b114ca7168f33726
viewport.x = static_cast<int32_t>(v1.x);
viewport.y = static_cast<int32_t>(v1.y);
- viewport.w = static_cast<int32_t>(v2.x - v1.x + 0.5f);
- viewport.h = static_cast<int32_t>(v2.y - v1.y + 0.5f);
+ viewport.w = static_cast<int32_t>(ceil(v2.x - viewport.x));
+ viewport.h = static_cast<int32_t>(ceil(v2.y - viewport.y));
if (viewport.w < 0) viewport.w = 0;
if (viewport.h < 0) viewport.h = 0;
uint32_t Paint::identifier() const noexcept
{
return pImpl->id;
-}
\ No newline at end of file
+}