| 396 | } |
| 397 | |
| 398 | void MiniMapView::stopScrolling(Action *action) |
| 399 | { |
| 400 | if (!Options::battleDragScrollInvert) |
| 401 | { |
| 402 | SDL_WarpMouse(_cursorPosition.x, _cursorPosition.y); |
| 403 | action->setMouseAction(_cursorPosition.x/action->getXScale(), _cursorPosition.y/action->getYScale(), _game->getScreen()->getSurface()->getX(), _game->getScreen()->getSurface()->getY()); |
| 404 | } |
| 405 | // reset our "mouse position stored" flag |
| 406 | _cursorPosition.z = 0; |
| 407 | } |
| 408 | } |
nothing calls this directly
no test coverage detected