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

  • Committer: edam
  • Date: 2012-02-29 21:56:32 UTC
  • Revision ID: edam@waxworlds.org-20120229215632-kypb9491vx7bicef
moved some stuf round, created a re-usable pool of message buffers, genericised "modes" for messages

Show diffs side-by-side

added added

removed removed

375
375
 
376
376
        // draw a column
377
377
        if( y_flip )
378
 
                for( int a = 7; a >= 0; a-- ) {
379
 
                        if( glyph_col & 1 )
380
 
                                _output_buffer |= 1 << ( a + y_shift );
381
 
                        glyph_col >>= 1;
382
 
                }
383
 
        else
384
378
                for( int a = 0; a < 8; a++ ) {
385
379
                        if( glyph_col & 1 )
386
380
                                _output_buffer |= 1 << ( a + y_shift );
387
381
                        glyph_col >>= 1;
388
382
                }
 
383
        else
 
384
                for( int a = 8; a < 0; a++ ) {
 
385
                        if( glyph_col & 1 )
 
386
                                _output_buffer |= 1 << ( a + y_shift );
 
387
                        glyph_col >>= 1;
 
388
                }
389
389
}
390
390
 
391
391
 
403
403
        }
404
404
        _output_buffer = 0;
405
405
}
406
 
 
407
 
 
408
 
void TextRenderer::select_font( int font_num )
409
 
{
410
 
        _font = font_num;
411
 
}