Skip to content

Commit

Permalink
Merge pull request #2293 from MarcSabatella/zoom-scaling
Browse files Browse the repository at this point in the history
Zoom scaling
  • Loading branch information
lasconic committed Nov 22, 2015
2 parents 648340f + f8e3e66 commit 010918b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mscore/scoreview.cpp
Expand Up @@ -664,7 +664,7 @@ ScoreView::ScoreView(QWidget* parent)

setContextMenuPolicy(Qt::DefaultContextMenu);

double mag = preferences.mag;
double mag = preferences.mag * (mscore->physicalDotsPerInch() / DPI);
_matrix = QTransform(mag, 0.0, 0.0, mag, 0.0, 0.0);
imatrix = _matrix.inverted();
_magIdx = preferences.mag == 1.0 ? MagIdx::MAG_100 : MagIdx::MAG_FREE;
Expand Down Expand Up @@ -2049,7 +2049,7 @@ void ScoreView::paint(const QRect& r, QPainter& p)

void ScoreView::zoomStep(qreal step, const QPoint& pos)
{
qreal _mag = mag();
qreal _mag = lmag();

_mag *= qPow(1.1, step);

Expand Down

0 comments on commit 010918b

Please sign in to comment.