/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.h

  • Committer: Tim Marston
  • Date: 2012-04-29 15:27:19 UTC
  • Revision ID: tim@ed.am-20120429152719-4cu2t9lx7bxpbml1
added adjustable text scaling factor

Show diffs side-by-side

added added

removed removed

42
42
         * Get the width, in pexels, of a message.
43
43
         *
44
44
         * @param message_len the length of the message
 
45
         * @param scale taxt scaling factor
45
46
         */
46
 
        int get_width( int message_len );
 
47
        int get_width( int message_len, int scale );
47
48
 
48
49
        /**
49
50
         * Draw a column of pixels at pixel-offset x in the message.
54
55
         * @param x the pixel column of the message to draw
55
56
         * @param y_flip true to draw up-side down
56
57
         * @param y_shift shift the drawing up/down
 
58
         * @param scale taxt scaling factor
57
59
         */
58
60
        void render( const char *message, int message_len, int x,
59
 
                                 bool y_flip, int y_shift );
 
61
                                 bool y_flip, int y_shift, int scale );
60
62
 
61
63
        /**
62
64
         * Reset the output buffer.