jugant amb clang-tidy
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user