1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:27:34 +00:00

Flood: Store the board as a vector of integers

This commit is contained in:
implicitfield 2022-11-28 22:12:12 +02:00 committed by Andreas Kling
parent 39caaae90a
commit aa24caffc5
4 changed files with 42 additions and 44 deletions

View file

@ -62,7 +62,7 @@ void BoardWidget::paint_event(GUI::PaintEvent& event)
int cell_y = row * cell_size + board_offset.height();
Gfx::Rect cell_rect(cell_x, cell_y, cell_size, cell_size);
Color fill_color = m_board->cell(row, column);
Color fill_color = m_board->get_color_scheme()[m_board->cell(row, column)];
painter.fill_rect(cell_rect, fill_color);
}
}