summaryrefslogtreecommitdiff
path: root/Applications/PixelPaint/Image.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-20 22:29:04 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-20 22:30:42 +0200
commitbf9e190533350b7336bd3404da4928a5db0037c5 (patch)
tree56f9f838921d75f45923001a1d212c48b6ab3a71 /Applications/PixelPaint/Image.h
parent58fa9c6e8908c7a1416b9c340225e7b73f9c5e2a (diff)
downloadserenity-bf9e190533350b7336bd3404da4928a5db0037c5.zip
PixelPaint: Support panning and scaling the image we're working on :^)
ImageEditor now supports panning (Ctrl+MiddleMouse) and scaling (Wheel) the image. This took a lot of unpleasant coordinate math, but now it actually kinda works and feels awesome! :^)
Diffstat (limited to 'Applications/PixelPaint/Image.h')
-rw-r--r--Applications/PixelPaint/Image.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/PixelPaint/Image.h b/Applications/PixelPaint/Image.h
index c42ad51d39..c69912978c 100644
--- a/Applications/PixelPaint/Image.h
+++ b/Applications/PixelPaint/Image.h
@@ -51,7 +51,7 @@ public:
void add_layer(NonnullRefPtr<Layer>);
- void paint_into(GUI::Painter&, const Gfx::Rect& dest_rect, const Gfx::Rect& src_rect);
+ void paint_into(GUI::Painter&, const Gfx::Rect& dest_rect);
GUI::Model& layer_model();