forked from jaildesigner-jailgames/jaildoctors_dilemma
cppcheck
This commit is contained in:
@@ -288,20 +288,17 @@ void LoadingScreen::renderHeaderBorder() const {
|
||||
const auto COLOR = carrier_.toggle ? static_cast<Uint8>(PaletteColor::RED) : static_cast<Uint8>(PaletteColor::CYAN);
|
||||
const int WIDTH = Options::game.width + (Options::video.border.width * 2);
|
||||
const int HEIGHT = Options::game.height + (Options::video.border.height * 2);
|
||||
bool draw_enabled = true;
|
||||
|
||||
|
||||
// Primera linea (con el color y tamaño de la portadora)
|
||||
int row = 0;
|
||||
const int FIRST_ROW_HEIGHT = static_cast<int>(carrier_.offset);
|
||||
if (draw_enabled) {
|
||||
for (int i = row; i < row + FIRST_ROW_HEIGHT; ++i) {
|
||||
border->drawLine(0, i, WIDTH, i, COLOR);
|
||||
}
|
||||
for (int i = row; i < row + FIRST_ROW_HEIGHT; ++i) {
|
||||
border->drawLine(0, i, WIDTH, i, COLOR);
|
||||
}
|
||||
row += FIRST_ROW_HEIGHT;
|
||||
draw_enabled = !draw_enabled;
|
||||
|
||||
|
||||
// Resto de lineas (siguen a la portadora)
|
||||
bool draw_enabled = false;
|
||||
while (row < HEIGHT) {
|
||||
if (draw_enabled) {
|
||||
for (int i = row; i < row + HEADER_DATAROW_HEIGHT; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user