summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Applications/PixelPaint/ImageEditor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/PixelPaint/ImageEditor.cpp b/Userland/Applications/PixelPaint/ImageEditor.cpp
index e3db66dc17..3723034673 100644
--- a/Userland/Applications/PixelPaint/ImageEditor.cpp
+++ b/Userland/Applications/PixelPaint/ImageEditor.cpp
@@ -261,7 +261,7 @@ GUI::MouseEvent ImageEditor::event_with_pan_and_scale_applied(GUI::MouseEvent co
auto image_position = frame_to_content_position(event.position());
return {
static_cast<GUI::Event::Type>(event.type()),
- Gfx::IntPoint(image_position.x(), image_position.y()),
+ image_position.to_rounded<int>(),
event.buttons(),
event.button(),
event.modifiers(),
@@ -278,7 +278,7 @@ GUI::MouseEvent ImageEditor::event_adjusted_for_layer(GUI::MouseEvent const& eve
image_position.translate_by(-layer.location().x(), -layer.location().y());
return {
static_cast<GUI::Event::Type>(event.type()),
- Gfx::IntPoint(image_position.x(), image_position.y()),
+ image_position.to_rounded<int>(),
event.buttons(),
event.button(),
event.modifiers(),