CORE: fixed toHex

master
Martin Gerhardy 2022-05-20 19:27:49 +02:00
parent 464098270f
commit 4fb083cd96
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ core::String Color::toHex(const RGBA rgba, bool hashPrefix) {
if (hashPrefix) {
hex.append("#");
}
hex.append(core::string::format("%x%x%x%x", rgba.r, rgba.g, rgba.b, rgba.a));
hex.append(core::string::format("%02x%02x%02x%02x", rgba.r, rgba.g, rgba.b, rgba.a));
return hex;
}