git-svn-id: https://svn.code.sf.net/p/pianobooster/code/trunk@119 ba081f5d-443b-49a7-ac4b-446c3f91f371

This commit is contained in:
louisjb 2010-05-02 12:45:25 +00:00
parent 4749dcb48a
commit 4e95043ff7
3 changed files with 9 additions and 0 deletions

View File

@ -351,6 +351,8 @@ void CGLView::init()
}
setFocusPolicy(Qt::ClickFocus);
m_score->init();
// increased the tick time for Midi handling
m_timer.start(4, this ); // was 12

View File

@ -44,6 +44,10 @@ CScore::CScore(CSettings* settings) : CDraw(settings)
}
m_activeScroll = 0;
}
void CScore::init() {
m_activeScroll = 0;
m_scroll[m_activeScroll]->showScroll(true);
m_scoreDisplayListId = 0;//glGenLists (1);
m_stavesDisplayListId = glGenLists (1);

View File

@ -43,6 +43,9 @@ public:
CScore(CSettings* settings);
~CScore();
void init();
//! add a midi event to be analysed and displayed on the score