/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-03-03 10:06:31 UTC
  • Revision ID: edam@waxworlds.org-20120303100631-ae3idks1703vdm05
widenned clock hands, tweaked scales, got top & bottom text modes working

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
378
384
                for( int a = 0; a < 8; a++ ) {
379
385
                        if( glyph_col & 1 )
380
386
                                _output_buffer |= 1 << ( a + y_shift );
381
387
                        glyph_col >>= 1;
382
388
                }
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
}