diff options
Diffstat (limited to 'src/citra_qt/bootmanager.cpp')
| -rw-r--r-- | src/citra_qt/bootmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cpp index 66a9e6fba..a7f949411 100644 --- a/src/citra_qt/bootmanager.cpp +++ b/src/citra_qt/bootmanager.cpp | |||
| @@ -225,7 +225,7 @@ void GRenderWindow::mousePressEvent(QMouseEvent *event) | |||
| 225 | void GRenderWindow::mouseMoveEvent(QMouseEvent *event) | 225 | void GRenderWindow::mouseMoveEvent(QMouseEvent *event) |
| 226 | { | 226 | { |
| 227 | auto pos = event->pos(); | 227 | auto pos = event->pos(); |
| 228 | this->TouchMoved(static_cast<unsigned>(pos.x()), static_cast<unsigned>(pos.y())); | 228 | this->TouchMoved(static_cast<unsigned>(std::max(pos.x(), 0)), static_cast<unsigned>(std::max(pos.y(), 0))); |
| 229 | } | 229 | } |
| 230 | 230 | ||
| 231 | void GRenderWindow::mouseReleaseEvent(QMouseEvent *event) | 231 | void GRenderWindow::mouseReleaseEvent(QMouseEvent *event) |