summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-12-09 07:01:35 +0100
committerGitHub <noreply@github.com>2021-12-09 07:01:35 +0100
commit25298d1c02bbb5d92391cae3340ac470dff8fa9e (patch)
treeb830410aad9b9419285aa19f93bafeb2e600dd53
parentMerge pull request #7544 from Morph1984/r16g16 (diff)
parentprofiler: Use QWheelEvent position().toPoint() (diff)
downloadyuzu-25298d1c02bbb5d92391cae3340ac470dff8fa9e.tar
yuzu-25298d1c02bbb5d92391cae3340ac470dff8fa9e.tar.gz
yuzu-25298d1c02bbb5d92391cae3340ac470dff8fa9e.tar.bz2
yuzu-25298d1c02bbb5d92391cae3340ac470dff8fa9e.tar.lz
yuzu-25298d1c02bbb5d92391cae3340ac470dff8fa9e.tar.xz
yuzu-25298d1c02bbb5d92391cae3340ac470dff8fa9e.tar.zst
yuzu-25298d1c02bbb5d92391cae3340ac470dff8fa9e.zip
Diffstat (limited to '')
-rw-r--r--src/yuzu/debugger/profiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/debugger/profiler.cpp b/src/yuzu/debugger/profiler.cpp
index a8b254199..33110685a 100644
--- a/src/yuzu/debugger/profiler.cpp
+++ b/src/yuzu/debugger/profiler.cpp
@@ -163,7 +163,7 @@ void MicroProfileWidget::mouseReleaseEvent(QMouseEvent* ev) {
}
void MicroProfileWidget::wheelEvent(QWheelEvent* ev) {
- const auto wheel_position = ev->pos();
+ const auto wheel_position = ev->position().toPoint();
MicroProfileMousePosition(wheel_position.x() / x_scale, wheel_position.y() / y_scale,
ev->angleDelta().y() / 120);
ev->accept();