bzr branch
http://bzr.ed.am/elec/propeller-clock
86
by Tim Marston
various tweaks, a (failed) attempt to fix text reset bug and added TODO |
1 |
* Automatically draw text. |
2 |
||
3 |
Text::draw() should be called from propeller-clock.cc, and it should itterate |
|
4 |
over active messages and call draw_message() on them (which does what the |
|
5 |
current draw() does). |
|
6 |
||
7 |
This requires that Text somehow knows which messages are active. Perhaps |
|
8 |
message_reset() could somehow be used to determine this? |
|
9 |
||
10 |
This is necessary so that the cludgy call to Text::post_draw() can be removed |
|
11 |
from propeller-clock.cc. The problem here is that if _do_draw_reset is set |
|
12 |
false inside what is currently Text::draw(), only the first drawn message is |
|
13 |
ever correctly reset! |
|
14 |
||
15 |
This would also make calls to Text::draw() unnecessary from mode draw() |
|
16 |
routines. |
|
17 |
||
18 |
* Turn modes back in to classes. |
|
19 |
||
20 |
And get rid of all the switch statements in propeller-clock.cc. |
|
21 |