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

  • Committer: Tim Marston
  • Date: 2012-05-17 22:49:36 UTC
  • Revision ID: tim@ed.am-20120517224936-0wgyem932dlq5bs4
various tweaks, a (failed) attempt to fix text reset bug and added TODO

Show diffs side-by-side

added added

removed removed

50
50
                MODE_HSCROLL = 32,
51
51
        };
52
52
 
 
53
        enum {
 
54
                SCALE_VSMALL = 1,
 
55
                SCALE_SMALL = 2,
 
56
                SCALE_NORMAL = 3,
 
57
                SCALE_FAT = 4,
 
58
                SCALE_VFAT = 5,
 
59
        };
 
60
 
53
61
        /**
54
62
         * After modifying a message buffer, call this to reset the internal state
55
63
         * of the text renderer with regard to this message.
66
74
         * @param mode the new mode for this message
67
75
         * @param scale text
68
76
         */
69
 
        void reset_message( int message_num, char mode, int scale = 3 );
 
77
        void reset_message( int message_num, char mode, int scale = SCALE_NORMAL );
70
78
 
71
79
        /**
72
80
         * Reset internal state, for a new text display.
79
87
        void draw_reset();
80
88
 
81
89
        /**
 
90
         * Call after drawing each frame
 
91
         */
 
92
        void post_draw();
 
93
 
 
94
        /**
82
95
         * Draw segment for the specified message number using whatever mode that
83
96
         * message is set to.
84
97
         *