ModPlug Central

OpenMPT Development (Archive) => Bug Reports => Bug Report Archive => Topic started by: Saga Musix on March 17, 2009, 16:00:08

Title: .52 Always center active row VS. Show prev/next pat.
Post by: Saga Musix on March 17, 2009, 16:00:08
Full Version:
OpenMPT v1.17.02.52

Has the bug occured in previous versions? If yes, please specify version(s): (This option is optional, and doesn't need research. But in case you know...)
If "Always center active row" is disabled, the "show  prev/next pattern" option seems to be ignored...

EDIT:
Some progress: In theory, this could be fixed in CViewPattern::UpdateScrollSize, however "always center" doesn't work anymore if
if (CMainFrame::m_dwPatternSetup & PATTERN_CENTERROW) m_nMidRow = (rect.Height() - m_szHeader.cy) / (m_szCell.cy << 1);
is changed to
if (CMainFrame::m_dwPatternSetup & (PATTERN_CENTERROW | PATTERN_SHOWPREVIOUS)) m_nMidRow = (rect.Height() - m_szHeader.cy) / (m_szCell.cy << 1);

Edit: Moved to the issue tracker: http://bugs.openmpt.org/view.php?id=22