1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:37:46 +00:00

PixelPaint: Ensure layers are positioned correctly when painting

Previously, layer bitmaps could move slightly relative to their
boundary and the image background when panning and zooming.
This commit is contained in:
Tim Ledbetter 2023-01-05 12:26:13 +00:00 committed by Andreas Kling
parent 607c8045dc
commit 4be6ee85e0
3 changed files with 9 additions and 10 deletions

View file

@ -69,7 +69,7 @@ public:
ErrorOr<NonnullRefPtr<Image>> take_snapshot() const;
ErrorOr<void> restore_snapshot(Image const&);
void paint_into(GUI::Painter&, Gfx::IntRect const& dest_rect) const;
void paint_into(GUI::Painter&, Gfx::IntRect const& dest_rect, float scale) const;
ErrorOr<void> serialize_as_json(JsonObjectSerializer<StringBuilder>& json) const;
ErrorOr<void> export_bmp_to_file(NonnullOwnPtr<AK::Stream>, bool preserve_alpha_channel) const;