From d38efe2a4b596f0bebb50c429cf572d09435f288 Mon Sep 17 00:00:00 2001 From: Michael Hayes Date: Sat, 17 Sep 2011 22:33:23 +0000 Subject: [PATCH] Add TINYGL_MESSAGE_SIZE --- utils/tinygl.c | 2 +- utils/tinygl.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/utils/tinygl.c b/utils/tinygl.c index fab7f87..07d6eab 100644 --- a/utils/tinygl.c +++ b/utils/tinygl.c @@ -18,7 +18,7 @@ static font_t *font; static tinygl_text_mode_t text_mode = TINYGL_TEXT_MODE_STEP; static uint8_t message_index; static uint8_t scroll_pos = 0; -static char message1[32] = ""; +static char message1[TINYGL_MESSAGE_SIZE] = ""; /** Draw point. diff --git a/utils/tinygl.h b/utils/tinygl.h index 55d0ab9..185e50e 100644 --- a/utils/tinygl.h +++ b/utils/tinygl.h @@ -81,6 +81,10 @@ #define TINYGL_HEIGHT DISPLAY_HEIGHT +/** Maximum length of a message to display. */ +#define TINYGL_MESSAGE_SIZE 32 + + /** Define a pixel value. Currently the only supported values are 0 for off and 1 for on. */ typedef uint8_t tinygl_pixel_value_t;