bootmanager: Fix screenshot resolution factor usage

Fixes screenshots at non integer scaling
This commit is contained in:
ameerj
2021-09-10 01:28:02 -04:00
committed by Fernando Sahmkow
parent fcf2b2c78a
commit 80f8d4989e
7 changed files with 13 additions and 20 deletions

View File

@ -163,7 +163,7 @@ void MicroProfileWidget::mouseReleaseEvent(QMouseEvent* ev) {
}
void MicroProfileWidget::wheelEvent(QWheelEvent* ev) {
const auto wheel_position = ev->position().toPoint();
const auto wheel_position = ev->pos();
MicroProfileMousePosition(wheel_position.x() / x_scale, wheel_position.y() / y_scale,
ev->angleDelta().y() / 120);
ev->accept();