CORE: fixed toHex
parent
464098270f
commit
4fb083cd96
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue