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:
parent
39caaae90a
commit
aa24caffc5
4 changed files with 42 additions and 44 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue