Skip to content

Commit e16ef10

Browse files
committed
PenLayer: Snap bounds to int when stamping
1 parent ca00795 commit e16ef10

File tree

3 files changed

+1
-0
lines changed

3 files changed

+1
-0
lines changed

src/penlayer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ void PenLayer::stamp(IRenderedTarget *target)
245245
scaleY *= m_scale;
246246

247247
libscratchcpp::Rect bounds = target->getFastBounds();
248+
bounds.snapToInt();
248249
const Texture &texture = target->cpuTexture();
249250

250251
if (!texture.isValid())

test/stamp.png

-60 Bytes
Loading

test/stamp_hq.png

-3 Bytes
Loading

0 commit comments

Comments
 (0)