ddnet/src/base
Robert Müller aa5a24abc4 Improve color config variable handling
- 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.
2024-09-17 12:27:10 +02:00
..
tl Fix misspellings 2022-10-25 13:51:56 -03:00
unicode Replace all usages of C standard headers with C++ headers 2023-03-01 19:26:51 +01:00
.clang-tidy Enforce UpperCamelCase for local variables 2024-05-02 18:52:16 +08:00
bezier.cpp Move src/game/bezier.cpp/h to src/base/bezier.cpp/h 2022-09-24 20:53:59 +02:00
bezier.h Move src/game/bezier.cpp/h to src/base/bezier.cpp/h 2022-09-24 20:53:59 +02:00
Cargo.toml update ci actions, update rust edition to 2021 since our MSRV covers it 2024-02-25 15:55:10 +01:00
color.cpp Add color_parse function to parse strings as colors 2023-06-20 23:22:33 +02:00
color.h Improve color config variable handling 2024-09-17 12:27:10 +02:00
color.rs Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
detect.h Fix redefinition of CONF_ARCH_STRING for ARM architectures 2024-09-07 21:16:09 +02:00
dynamic.h Run clang-format 2020-09-26 21:50:15 +02:00
hash.cpp Use size_t for indices in digest_str 2022-10-15 18:08:41 +02:00
hash.h Remove useless typedef in c++ 2022-06-25 21:05:54 +02:00
hash_bundled.cpp Use cpp 2021-06-24 17:19:17 +02:00
hash_ctxt.h Make less headers depend on <base/system.h> 2023-12-11 23:52:23 +01:00
hash_libtomcrypt.cpp Fix more unsafe define 2022-06-29 23:52:03 +02:00
hash_openssl.cpp Ignore openssl deprecation warning for now (fixes #5597) 2022-07-27 09:06:57 +02:00
lib.rs Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
lock.h Add CLock wrapper for std::mutex to replace lock_* functions 2023-11-11 00:04:57 +01:00
log.cpp Add no-op logger to fix leak of CFutureLogger pending messages 2024-04-28 16:32:24 +02:00
log.h Replace all usages of C standard headers with C++ headers 2023-03-01 19:26:51 +01:00
logger.h Add no-op logger to fix leak of CFutureLogger pending messages 2024-04-28 16:32:24 +02:00
math.h Fix inaccurate envelope point value rounding 2023-11-10 19:11:10 +01:00
rust.h Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
rust.rs Fix typos 2023-09-05 22:32:09 +03:00
system.cpp Make macOS semaphore names more unique, improve assertion 2024-08-20 20:25:56 +02:00
system.h assert if str_format is used with no arguments 2024-09-03 08:49:55 +02:00
types.h Add 0.7 client support 2024-08-10 14:50:42 +02:00
vmath.h Don't allow mem_zero for nontrivial types 2023-11-18 22:55:17 +01:00