jugant amb clang-tidy

This commit is contained in:
2025-07-19 22:38:01 +02:00
parent 1d3fd79a9e
commit a7ef29b750
28 changed files with 735 additions and 734 deletions

View File

@@ -156,8 +156,8 @@ void Fade::update() {
SDL_SetRenderDrawColor(renderer_, r_, g_, b_, a_);
// Dibuja el cuadrado correspondiente
for (const auto rect : square_) {
SDL_RenderFillRect(renderer_, &rect);
for (const auto RECT : square_) {
SDL_RenderFillRect(renderer_, &RECT);
}
// Deja el renderizador como estaba
@@ -165,10 +165,10 @@ void Fade::update() {
SDL_SetRenderTarget(renderer_, temp);
// Modifica el tamaño de los rectangulos
const auto h = counter_ / 2;
const auto H = counter_ / 2;
for (size_t i = 0; i < square_.size(); ++i) {
// A partir del segundo rectangulo se pinta en función del anterior
square_.at(i).h = i == 0 ? h : std::max(static_cast<int>(square_.at(i - 1).h) - 2, 0);
square_.at(i).h = i == 0 ? H : std::max(static_cast<int>(square_.at(i - 1).h) - 2, 0);
}
int completed = 0;