/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-03-21 20:35:28 UTC
  • Revision ID: tim@ed.am-20120321203528-wfhpych1tub75rgj
fixed bug initialising text services on mode activation

Show diffs side-by-side

added added

removed removed

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