Show
Ignore:
Timestamp:
08/05/08 13:59:21 (5 years ago)
Author:
jakoblund
Message:

Fix the zoom buttons in the pattern- and song editors to look the same, and fix
implementation of zooming in the pattern editor.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gui/src/PatternEditor/DrumPatternEditor.cpp

    r220 r306  
    646646void DrumPatternEditor::zoom_out() 
    647647{ 
    648         m_nGridWidth = m_nGridWidth / 2; 
    649         if (m_nGridWidth < 3) { 
    650                 m_nGridWidth = 3; 
    651         } 
    652         updateEditor(); 
     648        if ( m_nGridWidth > 1.5 ) { 
     649                m_nGridWidth = m_nGridWidth / 2; 
     650                updateEditor(); 
     651        } 
    653652} 
    654653