svg_loader: finish the search after founding the proper color

In the _toColor func, after founding the proper color, the search
should be finiched.
This commit is contained in:
Mira Grudzinska 2021-06-27 16:25:45 +02:00 committed by JunsuChoi
parent f477933098
commit 57a22b8462

View file

@ -511,6 +511,7 @@ static void _toColor(const char* str, uint8_t* r, uint8_t* g, uint8_t* b, string
*r = (((uint8_t*)(&(colors[i].value)))[2]);
*g = (((uint8_t*)(&(colors[i].value)))[1]);
*b = (((uint8_t*)(&(colors[i].value)))[0]);
return;
}
}
}