Skip to content

Commit

Permalink
PenLayer: Snap bounds to int when stamping
Browse files Browse the repository at this point in the history
  • Loading branch information
adazem009 committed Nov 3, 2024
1 parent ca00795 commit e16ef10
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/penlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ void PenLayer::stamp(IRenderedTarget *target)
scaleY *= m_scale;

libscratchcpp::Rect bounds = target->getFastBounds();
bounds.snapToInt();
const Texture &texture = target->cpuTexture();

if (!texture.isValid())
Expand Down
Binary file modified test/stamp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/stamp_hq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e16ef10

Please sign in to comment.