Apply clang-tidy

This commit is contained in:
ArthurSonzogni
2023-08-08 01:57:43 +02:00
parent e2a205ed0d
commit 461d557674
5 changed files with 15 additions and 11 deletions

View File

@@ -78,7 +78,7 @@ void UpdatePixelStyle(const Screen* screen,
}
// Bold
if (FTXUI_UNLIKELY(next.bold != prev.bold || next.dim != prev.dim)) {
if (FTXUI_UNLIKELY((next.bold ^ prev.bold) | (next.dim ^ prev.dim))) {
// BOLD_AND_DIM_RESET:
ss << ((prev.bold && !next.bold) || (prev.dim && !next.dim) ? "\x1B[22m"
: "");