Skip to content

Commit

Permalink
fixed vst view screen metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkorsukov committed Feb 20, 2025
1 parent af80582 commit 72ca13b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/framework/vst/view/vstview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ void VstView::init()
return;
}

updateScreenMetrics();

m_view->setFrame(this);

m_window = new QWindow(window());
Expand All @@ -131,7 +133,6 @@ void VstView::init()
updateViewGeometry();
});

updateScreenMetrics();
updateViewGeometry();

m_window->show();
Expand Down
4 changes: 2 additions & 2 deletions src/instrumentsscene/view/systemobjectslayersettingsmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ void SystemObjectsLayerSettingsModel::setSystemObjectsGroupVisible(int index, bo
SystemObjectsGroup& group = m_systemObjectGroups.at(idx);

const muse::TranslatableString actionName = visible
? TranslatableString("undoableAction", "Make system marking(s) visible")
: TranslatableString("undoableAction", "Make system marking(s) invisible");
? muse::TranslatableString("undoableAction", "Make system marking(s) visible")
: muse::TranslatableString("undoableAction", "Make system marking(s) invisible");

notation->undoStack()->prepareChanges(actionName);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <QAbstractListModel>

#include "modularity/ioc.h"
#include "context/iglobalcontext.h"
#include "notation/inotation.h"

#include "layoutpanelutils.h"
Expand Down
3 changes: 2 additions & 1 deletion src/notation/internal/notationinteraction.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

#include "engraving/dom/engravingitem.h"
#include "engraving/dom/elementgroup.h"
#include "engraving/types/symid.h"
#include "scorecallbacks.h"

namespace mu::engraving {
Expand Down Expand Up @@ -329,7 +330,7 @@ class NotationInteraction : public INotationInteraction, public muse::Injectable
struct ShadowNoteParams {
mu::engraving::TDuration duration;
mu::engraving::AccidentalType accidentalType = mu::engraving::AccidentalType::NONE;
std::set<SymId> articulationIds;
std::set<mu::engraving::SymId> articulationIds;
mu::engraving::Position position;
};

Expand Down

0 comments on commit 72ca13b

Please sign in to comment.