/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/text.cc

  • Committer: Tim Marston
  • Date: 2012-05-17 22:49:36 UTC
  • Revision ID: tim@ed.am-20120517224936-0wgyem932dlq5bs4
various tweaks, a (failed) attempt to fix text reset bug and added TODO

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
}
140
140
 
141
141
 
 
142
void Text::post_draw()
 
143
{
 
144
        _do_draw_reset = false;
 
145
}
 
146
 
 
147
 
142
148
void Text::draw( int message_num, int segment )
143
149
{
144
150
        TextRenderer::buffer_in_use();
145
151
 
146
152
        // perform a mid-frame reset, as necessary
147
 
        if( _do_draw_reset && segment > NUM_SEGMENTS / 2 ) {
148
 
                _do_draw_reset = false;
149
 
 
 
153
        if( _do_draw_reset ) // && segment > NUM_SEGMENTS / 2 )
 
154
        {
150
155
                // reset message param?
151
156
                if( _message_recalc_flags & ( 1 << message_num ) ) {
152
157
                        _message_recalc_flags &= ~( 1 << message_num );