From f67715c4886dd2abe593f4a8927134c0b0f320cd Mon Sep 17 00:00:00 2001 From: Michael Hayes Date: Sun, 25 Sep 2011 05:04:06 +0000 Subject: [PATCH] Revert to old API --- apps/stopwatch1/stopwatch1.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/stopwatch1/stopwatch1.c b/apps/stopwatch1/stopwatch1.c index 3bf8e9d..59c863d 100644 --- a/apps/stopwatch1/stopwatch1.c +++ b/apps/stopwatch1/stopwatch1.c @@ -7,7 +7,7 @@ #include "button.h" #include "task.h" #include "tinygl.h" -#include "../fonts/font3x5_1_r.h" +#include "../fonts/font3x5_1.h" /* Define polling rates in Hz. */ @@ -41,8 +41,9 @@ static void button_task (__unused__ void *data) static void display_task_init (void) { tinygl_init (DISPLAY_TASK_RATE); - tinygl_font_set (&font3x5_1_r); + tinygl_font_set (&font3x5_1); tinygl_text_mode_set (TINYGL_TEXT_MODE_STEP); + tinygl_text_dir_set (TINYGL_TEXT_DIR_ROTATE); } @@ -54,7 +55,7 @@ static void display_task (__unused__ void *data) static void timer_task_init (void) { - tinygl_draw_string ("00", tinygl_point (0, 0)); + tinygl_text ("00"); } @@ -73,7 +74,7 @@ static void timer_task (__unused__ void *data) str[1] = (time % 10) + '0'; str[2] = 0; - tinygl_draw_string (str, tinygl_point (0, 0)); + tinygl_text (str); time++; }