clang-tidy
This commit is contained in:
@@ -177,7 +177,7 @@ void Fade::drawRandomSquares() {
|
||||
(num_squares_width_ * num_squares_height_) - 1);
|
||||
|
||||
for (int i = 0; i < fade_random_squares_mult_; ++i) {
|
||||
const int INDEX2 = std::min(INDEX * fade_random_squares_mult_ + i,
|
||||
const int INDEX2 = std::min((INDEX * fade_random_squares_mult_) + i,
|
||||
static_cast<int>(square_.size()) - 1);
|
||||
SDL_RenderFillRect(renderer_, &square_[INDEX2]);
|
||||
}
|
||||
@@ -250,14 +250,14 @@ void Fade::activate() {
|
||||
}
|
||||
|
||||
case Type::CENTER: {
|
||||
rect1_ = {0, 0, param.game.width, 0};
|
||||
rect2_ = {0, 0, param.game.width, 0};
|
||||
rect1_ = {.x = 0, .y = 0, .w = param.game.width, .h = 0};
|
||||
rect2_ = {.x = 0, .y = 0, .w = param.game.width, .h = 0};
|
||||
a_ = 64;
|
||||
break;
|
||||
}
|
||||
|
||||
case Type::RANDOM_SQUARE: {
|
||||
rect1_ = {0, 0, static_cast<float>(param.game.width / num_squares_width_), static_cast<float>(param.game.height / num_squares_height_)};
|
||||
rect1_ = {.x = 0, .y = 0, .w = static_cast<float>(param.game.width / num_squares_width_), .h = static_cast<float>(param.game.height / num_squares_height_)};
|
||||
square_.clear();
|
||||
|
||||
// Añade los cuadrados al vector
|
||||
@@ -297,7 +297,7 @@ void Fade::activate() {
|
||||
|
||||
// Añade los cuadrados al vector
|
||||
square_.clear();
|
||||
rect1_ = {0, 0, param.game.width, 0};
|
||||
rect1_ = {.x = 0, .y = 0, .w = param.game.width, .h = 0};
|
||||
const int MAX = param.game.height / param.fade.venetian_size;
|
||||
|
||||
for (int i = 0; i < MAX; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user