diff options
author | Tony Wasserka <neobrainx@gmail.com> | 2015-05-02 19:15:03 +0200 |
---|---|---|
committer | Tony Wasserka <neobrainx@gmail.com> | 2015-05-02 19:15:03 +0200 |
commit | 7859b145cf11aaed39fc430ab1cf277a0cc39e77 (patch) | |
tree | 66b4622566d00fe5788dc8ce7dbfc899d9c056d6 /src/citra_qt/bootmanager.cpp | |
parent | Merge pull request #713 from bunnei/qt-emuthread-fixes (diff) | |
parent | EmuWindow: Clip mouse input coordinates to emulated screen dimensions. (diff) | |
download | yuzu-7859b145cf11aaed39fc430ab1cf277a0cc39e77.tar yuzu-7859b145cf11aaed39fc430ab1cf277a0cc39e77.tar.gz yuzu-7859b145cf11aaed39fc430ab1cf277a0cc39e77.tar.bz2 yuzu-7859b145cf11aaed39fc430ab1cf277a0cc39e77.tar.lz yuzu-7859b145cf11aaed39fc430ab1cf277a0cc39e77.tar.xz yuzu-7859b145cf11aaed39fc430ab1cf277a0cc39e77.tar.zst yuzu-7859b145cf11aaed39fc430ab1cf277a0cc39e77.zip |
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) void GRenderWindow::mouseMoveEvent(QMouseEvent *event) { auto pos = event->pos(); - this->TouchMoved(static_cast<unsigned>(pos.x()), static_cast<unsigned>(pos.y())); + this->TouchMoved(static_cast<unsigned>(std::max(pos.x(), 0)), static_cast<unsigned>(std::max(pos.y(), 0))); } void GRenderWindow::mouseReleaseEvent(QMouseEvent *event) |