Simplify tinygl API by removing rotate options and using rotated font instead

This commit is contained in:
Michael Hayes
2011-09-23 22:57:01 +00:00
parent a7b04f5f1d
commit 4ab3dda0be
15 changed files with 56 additions and 111 deletions
+4 -4
View File
@@ -11,7 +11,7 @@
#include "task.h"
#include "tweeter.h"
#include "tinygl.h"
#include "../fonts/font3x5_1.h"
#include "../fonts/font3x5_1_r.h"
/* Connect piezo tweeter to outermost pins of UCFK4 P1 connector. */
@@ -77,7 +77,7 @@ static void button_task_init (void)
static void display_note (void)
{
tinygl_clear ();
tinygl_draw_string (note_names[note], tinygl_point (0, 0), 1);
tinygl_draw_string (note_names[note], tinygl_point (0, 0));
}
@@ -122,8 +122,8 @@ static void button_task (__unused__ void *data)
static void display_task_init (void)
{
tinygl_init (DISPLAY_TASK_RATE);
tinygl_font_set (&font3x5_1);
tinygl_text_mode_set (TINYGL_TEXT_MODE_ROTATE_STEP);
tinygl_font_set (&font3x5_1_r);
tinygl_text_mode_set (TINYGL_TEXT_MODE_STEP);
display_note ();
}