Add calm blue text colour, buffer overflow fix for richtext
This commit is contained in:
parent
7a875dd846
commit
03a048afe5
@ -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++;
|
||||
}
|
||||
|
@ -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++){
|
||||
|
Loading…
Reference in New Issue
Block a user