mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-17 13:38:18 +00:00
aa5a24abc4
- Add separate `CFGFLAG_COLLIGHT7` for 0.7 color config variables, which use `61/255` as darkest lighting value. In comparison, `CFGFLAG_COLLIGHT` uses `0.5` darkest lighting, so the color values being shown for 0.7 color variables were incorrect. Closes #8775. - Pass darkest lighting as parameter directly instead of using `bool`s to avoid duplicating the logic. - Add `ColorHSLA::DARKEST_LGT7` constant to replace existing `CTeeInfo::ms_DarkestLGT7` and `CSkins7::DARKEST_COLOR_LGT` constants. - Round color components before printing them in config variable command handler, as color components are generally also rounded before being packed and before rendering. - Remove default value of `ColorHSLA::UnclampLighting` function, to avoid incorrect usage. |
||
---|---|---|
.. | ||
tl | ||
unicode | ||
.clang-tidy | ||
bezier.cpp | ||
bezier.h | ||
Cargo.toml | ||
color.cpp | ||
color.h | ||
color.rs | ||
detect.h | ||
dynamic.h | ||
hash.cpp | ||
hash.h | ||
hash_bundled.cpp | ||
hash_ctxt.h | ||
hash_libtomcrypt.cpp | ||
hash_openssl.cpp | ||
lib.rs | ||
lock.h | ||
log.cpp | ||
log.h | ||
logger.h | ||
math.h | ||
rust.h | ||
rust.rs | ||
system.cpp | ||
system.h | ||
types.h | ||
vmath.h |