Skip to content

Commit affa08f

Browse files
committed
Update libscratchcpp to latest master
1 parent e12906d commit affa08f

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/spritemodel.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ libscratchcpp::Rect SpriteModel::boundingRect() const
145145
return m_renderedTarget->getBounds();
146146
}
147147

148+
libscratchcpp::Rect SpriteModel::fastBoundingRect() const
149+
{
150+
return libscratchcpp::Rect(m_sprite->x(), m_sprite->y(), m_sprite->x(), m_sprite->y());
151+
}
152+
148153
libscratchcpp::Sprite *SpriteModel::sprite() const
149154
{
150155
return m_sprite;

src/spritemodel.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class SpriteModel
5555
void onBubbleTextChanged(const std::string &text) override;
5656

5757
libscratchcpp::Rect boundingRect() const override;
58+
libscratchcpp::Rect fastBoundingRect() const override;
5859

5960
libscratchcpp::Sprite *sprite() const;
6061

0 commit comments

Comments
 (0)