/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-09 21:36:01 UTC
  • Revision ID: tim@ed.am-20120509213601-kk1tqa9yg4xk45y9
added info mode, a '/' to the fonts and cleaned up a couple of bits

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