mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
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:
parent
f477933098
commit
57a22b8462
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue