Browse Source

Fix magnifier starting at wrong pos

tags/v5.0.0^2
ArsenArsen 5 years ago
parent
commit
1a22158b3d
No known key found for this signature in database
GPG Key ID: 683D2F43B0CA4BD2
  1. 2
      src/screenoverlay/screenoverlay.cpp

2
src/screenoverlay/screenoverlay.cpp

@ -11,6 +11,7 @@
#include <utils.hpp>
ScreenOverlay::ScreenOverlay(QPixmap pixmap, QObject *parent) : QGraphicsScene(parent), _pixmap(pixmap) {
setCursorPos(QCursor::pos());
addPixmap(pixmap)->setZValue(-1);
QPolygonF cursorPoly;
cursorPoly << QPoint(-10, 0) //
@ -159,6 +160,7 @@ void ScreenOverlay::setHighlight(QColor highlight) {
if (gridRectsX.isEmpty() || gridRectsY.isEmpty()) return;
gridRectsX[i]->setBrush(c);
gridRectsY[i]->setBrush(c);
updateMag();
highlightChanged(highlight);
}

Loading…
Cancel
Save