/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to src/modes/settings_major_mode.cc

  • Committer: Tim Marston
  • Date: 2012-05-18 18:29:50 UTC
  • Revision ID: tim@ed.am-20120518182950-t85bn9a21n72uzm8
text messages are now individually enabled and draw()n automatically

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
}
41
41
 
42
42
 
43
 
void SettingsMajorMode::draw( int segment )
44
 
{
45
 
        Text::draw( 0, segment );
46
 
}
47
 
 
48
 
 
49
43
void SettingsMajorMode::draw_reset()
50
44
{
51
45
        bool flash = ( ::millis() % 1000 ) > 600;
101
95
                break;
102
96
        }
103
97
 
104
 
        Text::set_message( 0, str0 );
 
98
        Text::set_message_text( 0, str0 );
105
99
}
106
100
 
107
101
 
171
165
 
172
166
void SettingsMajorMode::reset_messages()
173
167
{
174
 
        Text::reset_message( 0, Text::MODE_TOP | Text::MODE_ALL );
 
168
        Text::reset();
 
169
 
 
170
        Text::set_up_message( 0, Text::MODE_TOP | Text::MODE_ALL );
175
171
}