diff --git a/src/screenoverlay/screenoverlay.cpp b/src/screenoverlay/screenoverlay.cpp index 3d588f8..59f721a 100644 --- a/src/screenoverlay/screenoverlay.cpp +++ b/src/screenoverlay/screenoverlay.cpp @@ -11,6 +11,7 @@ #include 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); }