diff --git a/src/graphics.c b/src/graphics.c index 94c043fdf..93edd419f 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -861,6 +861,11 @@ int drawtext(pixel *vid, int x, int y, const char *s, int r, int g, int b, int a r = g = 0; b = 255; break; + case 't': + b = 255; + g = 170; + r = 32; + break; } s++; } diff --git a/src/interface.c b/src/interface.c index ec97c94e8..465d58e29 100644 --- a/src/interface.c +++ b/src/interface.c @@ -551,6 +551,8 @@ int markup_getregion(char *text, char *action, char *data, char *atext){ void ui_richtext_settext(char *text, ui_richtext *ed) { int pos = 0, action = 0, ppos = 0, ipos = 0; + memset(ed->printstr, 0, 512); + memset(ed->str, 0, 512); strcpy(ed->str, text); //strcpy(ed->printstr, text); for(action = 0; action < 6; action++){