diff options
author | german77 <juangerman-13@hotmail.com> | 2021-07-05 04:13:51 +0200 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2021-07-05 17:15:35 +0200 |
commit | b188d7792a238fbe8bd9e27c2729538e2d9eee10 (patch) | |
tree | 671bcafaf8e679875aac354960767a7a918620a8 /src | |
parent | Merge pull request #6552 from Morph1984/c4189-msvc (diff) | |
download | yuzu-b188d7792a238fbe8bd9e27c2729538e2d9eee10.tar yuzu-b188d7792a238fbe8bd9e27c2729538e2d9eee10.tar.gz yuzu-b188d7792a238fbe8bd9e27c2729538e2d9eee10.tar.bz2 yuzu-b188d7792a238fbe8bd9e27c2729538e2d9eee10.tar.lz yuzu-b188d7792a238fbe8bd9e27c2729538e2d9eee10.tar.xz yuzu-b188d7792a238fbe8bd9e27c2729538e2d9eee10.tar.zst yuzu-b188d7792a238fbe8bd9e27c2729538e2d9eee10.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu/debugger/profiler.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/yuzu/debugger/profiler.cpp b/src/yuzu/debugger/profiler.cpp index efdc6aa50..7a6f84d96 100644 --- a/src/yuzu/debugger/profiler.cpp +++ b/src/yuzu/debugger/profiler.cpp @@ -143,24 +143,25 @@ void MicroProfileWidget::hideEvent(QHideEvent* ev) { } void MicroProfileWidget::mouseMoveEvent(QMouseEvent* ev) { - MicroProfileMousePosition(ev->x() / x_scale, ev->y() / y_scale, 0); + MicroProfileMousePosition(ev->pos().x() / x_scale, ev->pos().y() / y_scale, 0); ev->accept(); } void MicroProfileWidget::mousePressEvent(QMouseEvent* ev) { - MicroProfileMousePosition(ev->x() / x_scale, ev->y() / y_scale, 0); + MicroProfileMousePosition(ev->pos().x() / x_scale, ev->pos().y() / y_scale, 0); MicroProfileMouseButton(ev->buttons() & Qt::LeftButton, ev->buttons() & Qt::RightButton); ev->accept(); } void MicroProfileWidget::mouseReleaseEvent(QMouseEvent* ev) { - MicroProfileMousePosition(ev->x() / x_scale, ev->y() / y_scale, 0); + MicroProfileMousePosition(ev->pos().x() / x_scale, ev->pos().y() / y_scale, 0); MicroProfileMouseButton(ev->buttons() & Qt::LeftButton, ev->buttons() & Qt::RightButton); ev->accept(); } void MicroProfileWidget::wheelEvent(QWheelEvent* ev) { - MicroProfileMousePosition(ev->x() / x_scale, ev->y() / y_scale, ev->delta() / 120); + MicroProfileMousePosition(ev->pos().x() / x_scale, ev->pos().y() / y_scale, + ev->angleDelta().y() / 120); ev->accept(); } |