diff -r d922431eacf7 -r 1f42c03fafca src/mainwindow.cpp --- a/src/mainwindow.cpp Sun Jul 25 16:29:08 2021 +0300 +++ b/src/mainwindow.cpp Sun Jul 25 20:29:14 2021 +0300 @@ -424,11 +424,11 @@ Q_UNUSED(event) } -void MainWindow::canvasMouseReleased(const Canvas::MouseClickInfo& info) +void MainWindow::canvasMouseReleased(Document* document, Canvas* canvas) { if (this->selectedTool != nullptr) { - this->selectedTool->mouseClick(info); + this->selectedTool->mouseClick(document, canvas); } } @@ -437,11 +437,11 @@ Q_UNUSED(event) } -void MainWindow::canvasMouseMoved(const Canvas::MouseMoveInfo& info) +void MainWindow::canvasMouseMoved(Document* document, Canvas* canvas) { if (this->selectedTool != nullptr) { - this->selectedTool->mouseMove(info); + this->selectedTool->mouseMove(document, canvas); } }