Skip to content

Commit

Permalink
Fix conversion between BSize and IntSize
Browse files Browse the repository at this point in the history
This was resulting in incorrect drawing of images. It should also make
things faster since image do not need to be resized anymore.
  • Loading branch information
pulkomandy committed Oct 3, 2021
1 parent ed9651d commit 3f92bc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/WebCore/platform/graphics/haiku/IntSizeHaiku.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
namespace WebCore {

IntSize::IntSize(const BSize& size)
: m_width(size.IntegerWidth())
, m_height(size.IntegerHeight())
: m_width(size.IntegerWidth() + 1)
, m_height(size.IntegerHeight() + 1)
{
}

IntSize::operator BSize() const
{
return BSize(width(), height());
return BSize(width() - 1, height() - 1);
}

} // namespace WebCore
Expand Down

0 comments on commit 3f92bc6

Please sign in to comment.